Introduction:
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 telephone number over and over,
if the number is the same as other data fields.
You can view a working form by clicking
here.
Source Code
<html>
<head>
<title>NSM | Tele Check Box</title>
</head>
<body>
<form>
Home Telephone:
<input name="home_phone" type="text"
size="14" maxlength="12">
<br>
Work Telephone:
<input name="work_phone" type="text"
size="14" maxlength="12">
<input type="checkbox" name="same_mail"
onClick="work_phone.value=(this.checked)?home_phone.value:''">
(check if same as home number)
</form>
</body>
</html>
NewSourceMedia is providing links to these listings as
a courtesy, and makes no representations regarding the content or
any information related thereto. Any questions, complaints or claims
regarding the downloaded content or details must be directed to the appropriate
publisher. We do not encourage or condone the use of any
software in violation of applicable laws.