jquery checkbox 點擊事件

     $("#checkboxbrand input[type='checkbox']").on('click',function(){
         
         alert("asdsad");
     })
checkboxbrand  下面有動態給checkbox 當翻頁的時候,以上方法點擊複選框不會觸發事件
 $("body").delegate("#checkboxbrand input[type='checkbox']","click",function(){
       alert("")
     
       });
checkboxbrand  下面有動態給checkbox 當翻頁的時候,以上方法點擊複選框會有相應事件發生
相關文章
相關標籤/搜索