Re: Javascript and Forms
by "Rossi Designs" <webmaster(at)rossidesigns.net>
|
Date: |
Wed, 15 Mar 2000 08:52:31 -0500 |
To: |
"Jeremy Brown" <jtmb(at)commkey.net>, "HTML Writers Guild" <hwg-techniques(at)hwg.org> |
References: |
commkey |
|
todo: View
Thread,
Original
|
|
This is cut and paste from one of my sites but you should get the idea
<script language="javascript"><!--
function fill_same_address() {
document.myForm.co_address.value=document.myForm.address.value;
document.myForm.co_city.value=document.myForm.city.value;
document.myForm.co_state.value=document.myForm.state.value;
document.myForm.co_zip.value=document.myForm.zip.value;
document.myForm.co_home_phone.value=document.myForm.home_phone.value;
document.myForm.co_years_at_res.focus();
}
// -->
</script>
and in the form ...
<tr nowrap><td class="smallprint">
Same Address as Borrower?
<input type="radio" name="same_address" value="yes"
onclick="fill_same_address();"> Yes
<input type="radio" name="same_address" value="no"
onclick="document.myForm.co_address.focus();"> No
</td></tr>
Rossi Designs
(904) 226-8979
P.O. Box 1084, Holly Hill, Florida 32125-1084
http://rossidesigns.net
----- Original Message -----
From: Jeremy Brown <jtmb(at)commkey.net>
To: HTML Writers Guild <hwg-techniques(at)hwg.org>
Sent: Tuesday, March 14, 2000 11:03 PM
Subject: Javascript and Forms
| I have searched endlessly, and have not been able to find the
| functionality that I desire. I have come across it before at a website,
|
| but alas I didn't note the address.
|
| What I am looking for is Javascript functionality for order forms. When
|
| someone completes an order, I want them to be able to select a checkbox
| that automatically fills in the shipping info to be the same as the
| billing info. The other solution, and the better one in my opinion,
| allows the user the enter information in the billing info area, while at
|
| the same time it is echoed in the shipping info area.
|
| Any help is greatly appreciated!!!!!!
|
| Thanks!!!!
|
| --
| Jeremy Brown
| Director of Internet Technology Development
| Innovative Business Consultants
| http://www.ibc2001.com
| (937) 277-2000
|
|
|
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA