Forums

This topic is locked

wonder if it is pobbile

Posted 03 Sep 2002 05:07:41
1
has voted
03 Sep 2002 05:07:41 Jeremy Millar posted:
Thanks for taking the time to read..
Okay.. to make it simple here is my questions. two text boxes that the user has to fill out and submit to database. Using one form.
When they type into Text A (address) can text B automatically contain this data.. which they may change if need be... don't know if this is possible.. just need to know.. so I can stop wasting anymore time. Once again thank-you for your time

Replies

Replied 03 Sep 2002 13:31:11
03 Sep 2002 13:31:11 Owen Eastwick replied:
Try something like:

Create a JavaScript Function to copy the text:

<!--
function CopyField(){
document.form1.Textfield2.value = document.form1.Textfield1.value;
}
//-->

Your two Text Fields:

<input type="text" name="Textfield1" onKeyUp="CopyField()">

<input type="text" name="Textfield2">

This will fill out the 2nd text field as they type into the first, the second field can then be amended without affecting the first.

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Edited by - oeastwick on 03 Sep 2002 13:31:31
Replied 03 Sep 2002 14:29:50
03 Sep 2002 14:29:50 Vince Baker replied:
Following on from this,

If I have a menu of items and I want to use a simular js code to move a value from that to a list field, and have the ability to add multiple items to that list field, how would I modify the code you showed here?



Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic