★ wanayoo — archive 1999 http://javascript.internet.com/forms/only-one-field.htmlNouvelle recherche | Portail wanayoo

Get in on the Ground Floor of Internet Publishing Internet Advertising Report


Home } Forms } Only One Field



The visitor must fill in either one of two fields, their name or email address. If they click in either box the other box's value is erased. Ensures that when the form is submitted only one field contains a value. Also contains validation that makes sure both fields are not empty.
Please enter your name or your email address.

Name   Email
Or...

The JavaScript Source: Forms: Only One Field

Simply click inside the window below, use your cursor to hilight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!
Top Ten Internet Stocks

Sign up for the JavaScript Source's Newsletters!
Site Updates!
Monthly Digest
Your Email:


We'll send this script to you!

(just click "Send it!" once!)

[ Contact Us! ]
[ JavaScript Forum ]

The JavaScript Source

Copyright 1999 Internet.com Corp.
All Rights Reserved. Legal Notices

Privacy Information
Advertising Information