Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select all checkboxes

//html 
<input type="checkbox" onclick="CheckAll(this)" id="checkboxAll" title="Select All" />
//jquery
function CheckAll(elem) {
   $('[name="checkbox"]').prop("checked", $(elem).prop('checked'));
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #checkboxes
ADD COMMENT
Topic
Name
1+8 =