Geeks With Blogs
faizan ahmad Usually the things which were not a straight Google August 2012 Entries
Select All checkboxes in a DIV using JQuery
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

Copyright © faizanahmad | Powered by: GeeksWithBlogs.net