I am trying to check some checkboxes based on it value. In my code, I can update the database using this ckbxs, but when I try load the updated date, the status is showed as uncheck. So, I am trying to read the html, after create the form, to check the values and then check the ckbx. What can I do here to fix it? Thanks in advance
$(document).ready(function(){
$('input[type=checkbox]').each(function () {
if (this.value == 1) {
(function(){this.attr('checked', true);})
}
} )
})