find 和 .is用法

 

$this 是一个表格对象

如果表单是被选中 则抄找form表单下的 type=checkbox 并全部添加 checked

$(this).parents('form').find('input:checkbox').attr('checked',$(this).is(':checked'));

posted on 2013-03-22 00:54  ijoanne  阅读(187)  评论(0)    收藏  举报