We help IT Professionals succeed at work.

show calculation in span

Seven price
Seven price asked
on
Medium Priority
276 Views
Last Modified: 2012-08-23
http://jsfiddle.net/B67sS/89/

I want to show the calculation total in the span instead of the input box.
Comment
Watch Question

Commented:
http://jsfiddle.net/slim81/B67sS/100/

You have to use the .html('your content here') when populating an element (ie: <span></span>).  You can also use .text('your content here').  They each have their strong points and reasons for use.

Also, I find I get weird results when I don't explicitly define my variable values as integers or floats when the values come from inputs.  Hence the parseFloat...
Seven priceFull Stack

Author

Commented:
tks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.