I have the following code:
$("#Table1 tbody").children().each(function(e){
$(this).bind('click',
function(){
// Do something here
},
false)
});
名称 |
当我单击表格行时,它能够正常工作。但是当我单击按钮时,按钮代码会触发,表格行的代码也会同时触发。
如何过滤选择器,使得按钮不会触发父元素的点击事件?