范文 |
tr 的onclick 选中checkbox,onclick事件,tr属性事件 <script language="javascript"> function on() { if (form1.cc.checked) {document.form1.cc.checked=false;} else {document.form1.cc.checked=true;} } </script> <form name="form1" method="post" action=""> <table> <tr onclick="on();"><td><input type="checkbox" name="cc"/></td><td>第二列</td><td>第三列</td><td>第四列</td><td>第二列</td></tr> </table> </form> |