用jQuery怎么写呀
这个例子用jQuery怎么写呀
这个例子用jQuery怎么写呀
2015-12-27
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
//绑定点击删除按钮回调函数
$("#del").on('click',function(){
$("#table tr input").each(function(index,element){
console.log(index);
console.log($(this).is(":checked"));
if($(this).is(":checked"))
{
$(this).parent().parent().remove();
}
})
});
});
</script>举报