how to put a checkbox within another checkbox html code example
Example: check checkbox based on value using jquery
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});
$.each(arrayValues, function(i, val){
$("input[value='" + val + "']").prop('checked', true);
});