13044Select (and copy) Form Element Scripthttp://www.dynamicdrive.com/dynamicindex11/selectform.htmAllow your surfers to easily select the contents of your form elements- as we have done with our script containers throughout Dynamic Drive- with this script. And just to outdo ourselves, we've also embedded in this script the ability to concurrently copy the content to clipboard (memory) as well (applicable only in IE 4+). Enjoy!JavaScript > Scripts and Programs > FormsOct 12, 2006
This script checks the contents of a form box to ensure that its a number (updated to accept demicals). If not, the submission of the form is canceled, and the surfer prompted to re-enter a valid number. This script requires NS 4.x or IE 4.x to function-all other browsers will simply not participate in the number checking.
The autocomplete library lets you add an autocomplete feature to any text input element like input and textarea. It also supports tag based input meaning that if a delimiter is defined the autocomplete feature will work separately for each tag. If no delimiter is specified it will work like a regular autocomplete feature.
Simply copy and paste the following code inside your body tags and run it from a browser.
If you want to see the live result (we believe this is the best way to learn about what is the script about.
Do you ever receive multiple copies of a single form submission? Do your visitors click the submit button over and over, hoping it will hurry up the process? Well, JavaScript can solve your problems! The script will prevent the visitor from submitting the form after the first submission. Basic field validation also included! Great!
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.