Geeks With Blogs
faizan ahmad Usually the things which were not a straight Google
function selectAll() {
  $("#DivContainingCheckboxesID :checkbox").attr('checked'true);
}
function selectNone() {
  $("#DivContainingCheckboxesID :checkbox").attr('checked'false);
} 
//if you want to do something specific for each check box
$("#DivContainingCheckboxesID :checkbox").each(function () {
      //do it here
      if (this.checked)
          this.click();
});

Posted on Friday, August 17, 2012 2:54 PM | Back to top


Comments on this post: Select All checkboxes in a DIV using JQuery

# re: Select All checkboxes in a DIV using JQuery
Requesting Gravatar...
Thanks for this code...saved me time
Left by sylvia Lobo on Jan 12, 2015 11:39 PM

Your comment:
 (will show your gravatar)


Copyright © faizanahmad | Powered by: GeeksWithBlogs.net