js操작품表单<스크립트 언어= "javascript">
functionchangeBoxes(action){
var oForm=document.forms["myForm1"];
var oCheckBox=oForm.hobby;
for(var i=0;i< ;oCheckBox.length;i )//遍历每一个选项
if(actionoCheckBox[i].checked=!oCheckBox[i].checked;
else
oCheckBox[i].checked=action;
}
< ;meta http-equiv="콘텐츠 유형" content="text/html; charset=utf-8" />
js操作表单< /title>