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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:32:59+00:00 2026-05-27T16:32:59+00:00

Situation: I have a calculator that I am building with js. It is a

  • 0

Situation:
I have a calculator that I am building with js. It is a custom function that has two text input fields and when the user clicks a ‘Calculate’ button it performs 4 different equations and outputs them into 4 separate text input boxes.

Question:
Is there a way to output the answers and input data into non-text input fields, like a string of normal text?

Example:

Your marketing Budget [$100,000]
Amount spent locally [10%]
‘Calculate Button’

Now by simply allocating [10%] of you annual budget you are able to increase ROI by [X] amount.

  • 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-27T16:33:00+00:00Added an answer on May 27, 2026 at 4:33 pm

    Sure, you can simply put <span>s as placeholders and set their content with .html(): http://api.jquery.com/html/

    Edit:
    As you have provided the function in a comment now, here is a more suited jqueryish example for your case:

    x=Number($('#nationalBudget').val());
    y=Number($('#percentageToLocal').val());
    a=x*2;
    b=[x*(100/100-(1/y))]*2;
    c=(x*(1/y))*4;
    $('#idOfSpan1').text(a);
    $('#idOfSpan2').text(b);
    $('#idOfSpan3').text(c);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building calculator on the iphone for learning purposes. I have a situation where
Here's the situation: I have a predetermined GPS route that the user will run.
Situation: I have a calculator that I'm developing using these formulas: // --- Math
Pseudo-situation: have a class (let's say BackgroundMagic ), and it has Start() and Stop()
Situation I have a client library that uses the Windows Azure AppFabric Service Bus
So here is the situation - I have a store app that I want
i have a situation where i need to calculate the remaining time every 6
I do have a function that periodically refreshes a canvas element (game kind of
I have a class that contains a collection. The two instances of the class
I have this situation that I need to let users define decisions based on

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.