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

  • Home
  • SEARCH
  • 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 6561659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:36:53+00:00 2026-05-25T13:36:53+00:00

I am trying to build a HTML / Jquery calculator where a user inputs

  • 0

I am trying to build a HTML / Jquery calculator where a user inputs a value into a text box “Average product unit value” and then another value into “Total unit sales volume”.

Once the values have been inputted I need those values to be multiplied by one another to generate a value for “Total sales value” but there is no submit button – think as soon as the user clicks outside of the text box that is when the calculation needs to happen.

enter image description here

If a submit button is a MUST then I am happy to but the current requirement is to not have one.

I do not know where to begin writing the logic to be able to do this – I am a novice when it comes to Jquery as I am still learning it.

enter image description here

here is the code to help

All suggestions are welcome – hope the image helps

Jordy

  • 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-25T13:36:54+00:00Added an answer on May 25, 2026 at 1:36 pm

    Here’s the basics. I’m sure you can finish it from here, but if not, post your HTML and the formula you want to use.

    EDIT: Updated to use your HTML.

    Working example available

    $(document).ready(function()
    {
        $('input').change(function()
        {
            var answer = parseInt($('#product-unit-val').val()) * parseInt($('#total-unit-sales').val()) * parseInt($('#number-reps').val());
            $('#sales-val').html('$' + answer);
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build some HTML with Knockout that Jquery UI can turn into
hey guys, I'm trying to build a simple custom select box with jquery. html:
I'm new to JQuery and trying to use it to dynamically build HTML based
I am trying to use javascript and jquery to build an HTML table based
I am trying to build a simple nested html menu using HAML and am
I'm trying to build a blog/messageboard that uses static HTML files to serve content.
I'm trying to get title of simple html document to build sitemap. But always
I'm trying to have the action of a HTML form built when the user
Im trying to build call to action button on my site using jQuery. I
I am trying to build a JQuery Mobile application. I want this application to

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.