Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Pre-populate content from one text box into another text box

Pre-populate content from one text box into another text box

kwinsor
03-16-2006, 08:46 PM
I am sure this is possible but I haven't a clue how to make it happen

I am looping X number of times and the user will be entering a fromValue to a ToValue

LOOP
1.) fromValue to ToValue
2.) fromValue to ToValue
3.) fromValue to ToValue
4.) fromValue to ToValue

what I need to do is when the user enter a ToValue
is for the next fromValue to display the previous ToValue.

Example: user enters
1.) 0 25 in Number 2, the fromValue should be 25.

Thanks for any assistance.

Kor
03-17-2006, 12:24 PM
I don't quite get your problem, but I guess that using defaultValue attribute might be of some help


<input type="text" value="foo"><input type="button" value="show the default value" onclick="alert(this.previousSibling.defaultValue)">


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

Move Cursor to Position in a Text Area
Problem opening popup window after form submit
Sorry Me Again, Need Help with Validating array checkboxes
switch not setting new value
is there an attribute that i can add to all types of form input
drop down menu - help needed
Dynamic Button not Handling Event
Drag n drop Thumbnail Images to iFrame, with Original Size
Help with an online order form using drop down boxes

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics