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');
 
PREVIOUS NEXT
Tagged: #jquery #checkbox #set #checked
ADD COMMENT
Topic
Name
1+9 =