Last posts:
Web Design » Tag cloud » Development
Views: 1511 | 1-11-2010, 08:45 | Category : Web Development

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
What do you need?

Website design
Website development
PHP Tutorials
Other


Hire Desk
»
Website Design & Development, Php Tutorials
This is Web developer Blog TheDesignMag
Only high quality web developming service