<script>
    function qqq() {
for(var a=1;a<document.getElementById("Table1").rows.length;a++)
{
    var cc=document.getElementById("Table1").rows[a].cells[2].getElementsByTagName("input");
    if(cc[0].checked)
    {
alert(cc[0].type);
    }
   
        var cc=document.getElementById("Table1").rows[a].cells[3].getElementsByTagName("input");
    if(cc[0].checked)
    {
alert(cc[0].type);
    }


}
}
</script>

 

其中cells[2]为checkbox,cells[3]为radio,第一个函数弹出checkbox,第二个弹出radio

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案