Donjwan Donjwan - 9 months ago 41
Javascript Question

changing a value of a html tag

I am using inside my page tag like this

<span class="class_name">1500</span>

and I have a javascript code who change "1500" to 15%

my question is how to read the number inside the span and print the new number
I want an example code



try this

<span id="thisspan" class="whateverclass">1500</span>
<div id="thevalueis"></div>

I hope i got your question right. :)