Click here to get back home

Form Question

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Form Question Ray Muforosky 08-10-2004
Get Chitika Premium
Posted by Ray Muforosky on August 10, 2004, 7:01 am
Please log in for more thread options
I have 2 forms A and B and fields A.radio ,A.text1 and B.text1, B.text2
I have this code working to pass value from a.button to B.testa when I click
on A.radio:
onClick=document.B.text1.value=this.value

How do I pass the value of A.text1 to B.text2 at the same time.

Any input will be highly appreciated.




Posted by kaeli on August 10, 2004, 8:35 am
Please log in for more thread options
enlightened us with...
> I have 2 forms A and B and fields A.radio ,A.text1 and B.text1, B.text2
> I have this code working to pass value from a.button to B.testa when I click
> on A.radio:
> onClick=document.B.text1.value=this.value
>
> How do I pass the value of A.text1 to B.text2 at the same time.
>

Cross-browser:
onClick="document.forms['B'].elements['text1'].value = this.value;
document.forms['B'].elements['text2'].value = document.forms['A'].elements
['text1'].value;"

(word-wrap may make that look like more than one line, but it's all one line)

--
--
~kaeli~
Any sufficiently advanced technology is indistinguishable
from magic.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Posted by Brian on August 10, 2004, 12:34 pm
Please log in for more thread options
Ray Muforosky wrote:

> I have this code working to pass value from a.button to
> B.testa when I click on A.radio:
> onClick=document.B.text1.value=this.value
>
> How do I pass the value of A.text1 to B.text2 at the same time.

Since this is a javascript question, why are you asking in an
HTML group? Try comp.lang.javascript.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Similar ThreadsPosted
Form question December 17, 2004, 3:59 pm
Netscape - Form Question June 27, 2005, 10:35 am
Form Submission Question November 17, 2005, 10:21 am
easy form layout question February 10, 2006, 4:28 pm
HTML Form question/problem August 29, 2007, 8:19 pm
one form per row - possible? August 20, 2004, 1:59 am
SSI question June 7, 2005, 11:58 am
OT - RSS Question July 21, 2005, 1:07 am
Another ALT question. February 9, 2006, 7:12 pm
PHP(?) question March 15, 2006, 3:13 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap