I have a very simple question - how do I get a form to submit when I change the status of a checkbox
Here is my code
<form name="formName" id="formName" action="<?php echo $_SERVER['PHP_SELF'];?>" method="get">
<input type ="checkbox" name="categories1" value = "1" onClick="submit();">1</input>
</form>
in addition to submit() I have tried:
- this.form.submit()
- document.getElementById('formName').submit()
- this.parentNode.submit()
but none of these work. When I check or uncheck the box nothing happen
any clues?