This is a simple form validation script that checks for empty fields. Dreamweaver offers very little in JavaScript form validation unless you're using Cold Fusion. In my opinion the built-in form validation behavior in Dreamweaver is sloppy and not user friendly.
This script creates required fields and makes sure that the fields are not empty when the user submits the form. If the required fields are empty, the form does not submit and the focus is set to that text field. Setting the focus is a nice feature because the user is directed to the exact field that produced the error.You can do more with this script by making sure the form does not contain certain words, email address validation, and so on. For this demonstration I am only showing the basic script. Feel free to modify and utilize this script in any way you see fit. If you have any questions, contact me.
Resource Details
Version:
1
Plateform:
Cross-browser compatible
Price:
N/A
Date Added:
Tue Aug 22, 2006
Author:
Michael Prather
Rate:
0.0(out of 5)
Vote:
0 Votes
Members Rating:
0.0(out of 5)
Members Review:
None
You could be the FIRST one to write a review for Form Validation.
Cut Price Digital Low Price online retail company specialising in digital products.
Laptop security cables Security cables form an inexpensive, yet effective way for protecting PC's, Apple Mac's, TFT screens, laptops and AV equipment. The comprehensive Cable-IT range caters for all of your cable requirements.
IT Support Services London Century Computing provide computer and IT support to a range of London clients. Talk to us about reducing you IT support costs.
Web Page Design With our novel approach to web page design, you can alter the contents of your website. Click here to use our extraordinary service!