By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,631 Members | 1,362 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,631 IT Pros & Developers. It's quick & easy.

Form Question

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <qx*******************@nwrddc02.gnilink.net>, iz****@yahoo.com
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

Jul 20 '05 #2

P: n/a
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/
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.