<style type="text/css">
.label_on
{ border:20px solid red; }
</style>
<table>
<tr><td><input type="checkbox" name="name"></td></tr>
<tr><td><input type="checkbox" name="name"></td></tr>
<tr><td><input type="checkbox" name="name"></td></tr>
</table>
<script type="text/javascript">
$(document).ready(
function(){

$(
"input:checkbox").each(function(){
$(
this).click(function(){
alert($(
this).attr('checked'));
$(
this).parent().toggleClass('label_on');
});
});
});
</script>

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-06-15
  • 2022-12-23
  • 2021-12-08
猜你喜欢
  • 2021-08-17
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-06-06
相关资源
相似解决方案