I have a asp.net input box:
<asp:TextBox ID="InCL" runat="server" Text=""></asp:TextBox>
As soon as a number is entered I would like to send that value to a javascript function that updates a google gauge.
For example, user inputs 77, the google gauge immediately dynamically moves to that position.
Any help is appreciated.
Thank You.
EDIT
I’m looking at the onkeyup DOM event, is this a good way to go?
I think I’m just talking to myself on here…..
Here is a script in jQuery I used to do something very similar. It does indeed use
onkeyupto set the value; it also usesonkeydownto prevent non-numeric values; and forces a default value of0if the user tries to leave the textbox with no value: