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?
@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.