[Solved] How to change property of checkboxes from a checkbox?


You can try using JQUERY, put this in your head tag :

<head>
<script src="https://stackoverflow.com/questions/23381099/jquery-1.11.0.min.js"></script>
</head>

Then below your head, to set Checked:

function setChecked(string checkbox)
   {
        $("#" + checkbox).prop('checked', true);
   }

to Uncheck:

function setChecked(string checkbox)
   {
        $("#" + checkbox).prop('checked', false);
   }

Call these methods in your PHP.

Good luck.

1

solved How to change property of checkboxes from a checkbox?