i have four check-boxes and an input like that
<input type="text" value="" class=" windows ">
i have this input: 1010
after splitting i have 1, 0, 1, 0
i want to check if input is 1 then set checkbox checked, when 0 set the checkboxes unchecked. i have tried this:
$(':checkbox').prop('checked', this.checked);
but that making all checkboxes checked!
any ideas please.