Recent posts by Tim Wilson
|
Jun 18, 2007
|
Topic: Script development / Add an onChange to a form I got it. I found other posts talking about creating a function, calling that function, and inside that function simulate a click on a fake button. Here's what I came up with: function mySubmit()
sSelect.addEventListener("change", mySubmit, true); |
|
Jun 18, 2007
|
Topic: Script development / Add an onChange to a form I am writing a script for a website that has a form with a submit button. The form contains only SELECT tags. I would like to add an onChange to one of the SELECT tags so when the user selects an option, they don't have to click submit. I've tried a couple of different things:
And I've tried:
The last one said submit didn't exist, so I tried sSelect.submit, but it still didn't work. Any ideas? |
