Wednesday, October 1, 2014

Checkbox foreach using Id in Jquery

$('input:checkbox[id^="CheckboxId"]').each(function(){
    if(this.checked) {
      // Do Actions
   }
});

$("#GridviewId input:checkbox[id$='CheckboxId']").each(function(){
    if(this.checked) {
      // Do Actions
   }

});

No comments:

Post a Comment