>> when something an option in a select box is clicked on, rather than when the form's button is pressed.
Yes of course, but "clicking" and "changing" an option are very different. Typically the onchange event is most useful, but if you need to use the onclick for whatever reason, you can certainly do so. Below is a jquery example (since you have been using jquery) that binds these events to a function.
Main Topics
Browse All Topics





by: khsaterPosted on 2009-07-28 at 20:40:39ID: 24966998
You mean something like the onchange event? It will be triggered whenever the select element is changed. That includes via a keyboard. )". Obviously, change formName to whatever your form is named.
If you want the form to submit, just have the value be "document.formName.submit(