for (var i=0; i < table1.rows.length; i++)
{
for (var j=0; j < table1.rows[i].cells.length; j++)
{
alert(table1.rows[i].cells[j].innerHTML);
}
}
{
for (var j=0; j < table1.rows[i].cells.length; j++)
{
alert(table1.rows[i].cells[j].innerHTML);
}
}
我需要的是看这个table 中是否没有一个checkbox被选中,如果是的话,我就会提醒一下。
{
if (inputs[i].type == "checkbox" && inputs[i].checked)
{
alert(inputs[i].name + " is checked");
}
else if (inputs[i].type == "radio" && inputs[i].checked)
{
alert(inputs[i].name + " is checked");
}
}