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.
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.
Related posts:
This entry was posted on December 15, 2009, 11:18 am and is filed under Code, Javascript, jQuery. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^