html
1 |
<input type=checkbox name=C1 onclick=radCheck(this)> |
JavaScript
1 2 3 4 5 6 7 8 9 10 |
<script language="JavaScript"> function radCheck(obj) { if(obj.checked) { obj.parentNode.parentNode.style.background="#FF6699"; } else{ obj.parentNode.parentNode.style.background="#fcfcfc"; } } </script> |
效果:
(Visited 43 times, 1 visits today)