14717Submit1ce v1.1http://www.maxxblade.co.uk/bits/submit1ce.phpThis little bit of JavaScript disables the submit button as soon as it is clicked for the first time and prevents the user sending their form multiple times. The script now also changes the word "submit" to "thanks" as an extra indication that the form has been sent.JavaScript > Tips and Tutorials > FormsOct 12, 2006MaxxBlade
A few weeks ago, I started a simple tutorial on how to cascade JavaScript check boxes from one row to the next in order to simplify the manipulation of large forms. This week, I’ll take it a step further by adding the same ability to both drop downs and text fields.
I ran accross this code when working on a registration product site. The goal is to save the user's time by not having them fill in the same address over and over, if the address for there billing is the same as the mailing address.
Move items from one menu to another by using two multiple-select menus. Make it easy to create a list, for example. I found this useful when creating a distribution list where I had a set of people available on one side and the list on the other.
Forms always require validation when they are used in not safe environments. One method is to verify the data submitted through POST or GET before actually executing the form action. Using Javascript it is possible to do this in a more simple way.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.