This will check all of the checkboxes inside of an element (div,span,table) with a class of outerClassName
$(".outerClassName :checkbox").attr('checked', true);
Tip: you must have the jQuery library referenced before using this line of code.
Dec 15
Posted by Daniel in Code, Javascript, jQuery | No Comments
This will check all of the checkboxes inside of an element (div,span,table) with a class of outerClassName
$(".outerClassName :checkbox").attr('checked', true);
Tip: you must have the jQuery library referenced before using this line of code.
You are currently browsing the archives for the jQuery category.

Theme by digitalnature | powered by WordPress | Entries (RSS) and Comments (RSS)