|
|
|
|
|
|
This is javascript 101, but I don't see it done too often. A lot of folks like to build select boxes that submit their form when changed. A lot of other folks don't like this, because if a user has javascript turned off, the form won't submit.
A quick and easy way around this is to write a standard self-submitting select, and then to add a submit button to the form. After the submit button's input tag, you can then use a quick line of javascript to hide the button. Voila - if javascript is enabled, the button is hidden, and the select is self-submitting. If javascript is disabled, the button remains, and can be used to submit the form.
|
|
|
|
|
|
Vote
Hire Desk
»
|