text input math?/to button or not to button?
i am very new to JSscipt, how would you go about creating a code for two input fields the second being twice the value of the first? (if first=2, then second=4, etc) thanks john
after typing in one box the other should display either half or double the value (depending on first or second box),,can this be done without a button of some sort?
Last edited by jwisneski2003; 09-09-2005 at 06:38 AM.
Reason: need button
<input type="text" onkeyup="document.getElementById('secondfield').value=Number(this.value)*2)">
<input type="text" id="secondfield">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)