|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Submit a form on clicking of a checkbox...
Hello,
I have a 'checkbox' and a 'submit button' in my form. I need the form to be submitted on clicking of the submit button (which works fine) or the clicking of the checkbox (i.e. checking or unchecking). I tried using this code for the checkbox but it didnt work. <input type="checkbox" name="checktest" value="ON" onclick="document.formName.action.submit;"> Basically, i want the form to be submitted whenever the checkbox is clicked. Thanks Neville |
|
#2
|
|||
|
|||
|
I'm not certain but I think it'll work fine if you remove the .action part of your line so make the onclick event
document.formName.submit (); -KM- |
|
#3
|
|||
|
|||
|
Works perfect. Thanks...
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Submit a form on clicking of a checkbox... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|