Open Aniketkhote opened 3 years ago
We get value ["on"] if its checked and [] if not but how we can set the value to the checkbox, is its true then mark as checked.
Hi!, value="on" <input type="checkbox" name="is_active" value="on" />
<input type="checkbox" name="is_active" value="on" />
We get value ["on"] if its checked and [] if not but how we can set the value to the checkbox, is its true then mark as checked.