Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check checkbox based on value using jquery

$.each(arrayValues, function(i, val){

   $("input[value='" + val + "']").prop('checked', true);

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #checkbox #based #jquery
ADD COMMENT
Topic
Name
1+5 =