0
   

pull data from form fields instantly?

 
 
Reply Wed 7 Sep, 2011 12:25 am
How do I pull data from form fields instantly?

for example, timer = 1;

here's the form:

<form id="debugForm">
<label>Timer: </label><input type="text" name="timer" value="1" />;
</form>

How could I make it so that if the variable timer is set to 1, and I typed 10 in the field, then the timer variable would update instantly?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,008 • Replies: 1
No top replies

 
hingehead
 
  1  
Reply Wed 7 Sep, 2011 01:42 am
@pigeonsxlc,
Not exatly sure what you mean - typing 10 changes the value when the form is submitted, and the user can't see what the initial value was set at. What are you trying to achieve?

You could do it using a Javascript onkeypress event I guess - just not sure why you would bother.
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » pull data from form fields instantly?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 06:00:34