Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > input box...auto update....

Reply
Thread Tools

input box...auto update....

 
 
Gerard
Guest
Posts: n/a
 
      09-23-2005
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.

 
Reply With Quote
 
 
 
 
Christopher Benson-Manica
Guest
Posts: n/a
 
      09-23-2005
Gerard <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
 
Gerard
Guest
Posts: n/a
 
      09-23-2005
Thanks much...i'll try this out

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Width of text input box vs. password input box cjl HTML 1 10-31-2005 11:46 AM
Which is faster in ASIC: 2-input AND gate or a 2-input multiplexer Weng Tianxiang VHDL 12 08-11-2005 10:50 AM
hide the input box or change the color of input box in html ashutosh Java 3 06-16-2005 02:21 PM
Input Drops With An Empty Input Queue Spiz Cisco 12 05-18-2005 05:28 PM
why does form with only 1 text input and 1 button input submit on enter? Guy HTML 5 12-13-2003 06:44 AM



Advertisments