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

input box...auto update....

P: n/a
Hi All,
I have 2 input box on my form...i would like input box #2 to be
updated automatically onces data entry in input box #1 is completed.

I would be greatful if some could guide me through this. I'm a php guy
with little javascript knowledge.

Regards,
Gerard.

Sep 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gerard <ca********@gmail.com> wrote:
I have 2 input box on my form...i would like input box #2 to be
updated automatically onces data entry in input box #1 is completed.


<input type="text" onchange="updateBox2()">
<input type="text" id="box2">

and somewhere in your script:

function updateBox2() {
document.getElementById( 'box2' ).value="whatever you want";
}

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Sep 23 '05 #2

P: n/a
Thanks much...i'll try this out

Sep 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.