checkbox全选兼容火狐
function selectIt() {
for ( var i = 0; i < document.form1.elements.length; i++) {
if (document.form1.elements[i].type == "checkbox") {
document.form1.elements[i].checked =true;
}
}
}
form1为表单name
function selectIt() {
for ( var i = 0; i < document.form1.elements.length; i++) {
if (document.form1.elements[i].type == "checkbox") {
document.form1.elements[i].checked =true;
}
}
}
form1为表单name