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 9207877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:29:09+00:00 2026-06-18T00:29:09+00:00

my expected output is As i type on input text field i get instant

  • 0

my expected output is

As i type on input text field i get instant sum on third text field

if i type 3 on first text field and key is up , instantly 3+0=3 have to show on third field

but doesnt show any result

     $(document).ready(function(){
        var a=0, b=0,c=0;

        $("input:#a").keyup(function(){
            a=$("input:#a").val();
            c=a+b;
            $("input:#c").append(a+"+"+"b"+"="+c);
         });

        $("input:#a").keyup(function(){
            b=$("input:#b").val();
            c=a+b;
            $("input:#c").append(a+"+"+b+"="+c);
        });

     });



        <tr><td><input type="text" id="a"></td></tr>
        <tr><td><input type="text" id="b"></td></tr>
        <tr><td><input type="text" id="c"></td></tr>
  • 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-06-18T00:29:10+00:00Added an answer on June 18, 2026 at 12:29 am

    You need something along the lines of the following:

    <table>
      <tbody>
        <tr><td>A<input type="text" id="a" /></td></tr>
        <tr><td>B<input type="text" id="b" /></td></tr>
        <tr><td>C<input type="text" id="c" /></td></tr>
      </tbody>
    </table>
    
    <!-- If you need this: -->
    <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
    
    $(document).ready(function(){
        var a=0, 
            b=0;
    
        $('input#a').bind('keyup', function(e){
            a = parseInt($(this).val()) || 0;
            var c = (a + b);
    
            $('input#c').val(a + '+' + b + '=' + c);
        });  
    
        $('input#b').bind('keyup', function(e){
            b = parseInt($(this).val()) || 0;
            var c = (a + b);
    
            $('input#c').val(a + '+' + b + '=' + c);
        });
    
    });
    

    This code performs the calculation and puts the result in box C, and automatically updates C with the result of the calculation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Expected output & output I get in debug mode, and release mode under VS2010,
My LINQ query is not producing the expected output below. Basically, it's the sum
From the following code, I expect to get this output from the corresponding input:
This code when executed displays the expected output but prints segmentation fault (core dumped)
$fr = hammad; $frhammad = nuthing; echo $fr{$fr}; Output: h Whereas the expected output
I expected to see the word test appear in the output once and the
I have some troubles with Haskell's type system. Situation: Following program is taking list
I have a completely non-interactive python program that takes some command-line options and input
I am having trouble writing to standard input with Aruba. I have tried three
I have a jQuery autocomplete script in my page, and if I type in

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.