Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 995317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:42:16+00:00 2026-05-16T06:42:16+00:00

I have a asp.net input box: <asp:TextBox ID=InCL runat=server Text=></asp:TextBox> As soon as a

  • 0

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…..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:42:16+00:00Added an answer on May 16, 2026 at 6:42 am

    Here is a script in jQuery I used to do something very similar. It does indeed use onkeyup to set the value; it also uses onkeydown to prevent non-numeric values; and forces a default value of 0 if the user tries to leave the textbox with no value:

    var updateUI = function(value) {
        //set gauge
    };
    
    var textbox = $('#id_of_textbox)'
    
    textbox.keydown(function(e) {
        return validNumberKeys.indexOf(e.which) > -1;
    }).keyup(function(e) {
        var input = $(e.target);
        if(input.val() !== '') {
            updateUI(input.val());
        }
    }).blur(function(e) {
        var input = $(e.target);
        if(input.val()==='') { input.val('0'); }
        updateUI(input.val());
    });
    
    var validNumberKeys = [8,9,13,16,17,18,35,36,37,38,39,40,45,46,48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DDL and ASP.NET Textbox. I would like to populate the text
I have a asp.net form with 5 HTML file input controls with runat=server and
I have asp.net TextBox with ontextchanged event this is search text box in my
In my ASP.NET page, I have an input box that has to have the
I have a simple ASP.Net MVC View which contains an FCKeditor text box (created
I have asp.net code: <asp:RadioButton ID=RadioButton1 CssClass=rb1 GroupName=grp1 runat=server /> <br/> <asp:RadioButton ID=RadioButton2 CssClass=rb2
I have an ASP.NET webpage that is rendering many (~3000) <input type=text> textboxes on
<asp:Content ID=Content1 ContentPlaceHolderID=head runat=server> $(document).ready( function () { $(input[id$='txt_ClientIntakeDate']).val(Text From Jquery); $(input[id$='txt_ClientIntakeDate']).datepicker(); } );
I have created a website in ASP.NET 3.5 that takes some input in text
I have to validate two asp.net text boxes. First one has input as :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.