87
rated 0 times
[
93]
[
6]
/ answers: 1 / hits: 63074
/ 11 Years ago, sun, september 22, 2013, 12:00:00
I am writing some javascript to be run in a bookmarklet that should get the text within a element that has a certain class name.
So for example
document.getElementsByClassName('price')
where the web page has or example
<span class=price>
£23
</span>
How would I go about getting the actual text within the the element that has a class name price (i.e £23 in the above example).
More From » javascript