If I click on the checkbox to activate it, the checkbox is first activated on Chrome, Firefox and Opera and after that de form is submitted. On Safari (MacOS) however first the form is submitted and the checkbox is checked only after the submit. How to solve this?
I have this piece of code
for checking the state of this inputfield
<input type="checkbox" name="var" id="tmpCheck" value="1"<?php if($va == 1) { echo ' checked'; } ?>><label for="tmpcheck">Text line</label>
If I click on the checkbox to activate it, the checkbox is first activated on Chrome, Firefox and Opera and after that de form is submitted. On Safari (MacOS) however first the form is submitted and the checkbox is checked only after the submit. How to solve this?