Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery checkbox set checked

//For jQuery 1.6 and above
$('#myCheckBoxID').prop('checked', true);
//For jQuery Before 1.6
$('#myCheckBoxID').attr('checked','checked');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #checkbox #set #checked
ADD COMMENT
Topic
Name
5+2 =