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