How do you get text wrapped in a span block in pure JavaScript? id block can not hang. only the name of the class is known.
I tried this:
var price; price = document.getElementsByClassName('name2'); alert(price.innerHTML); <span class="name2">iii</span> <span class="name2">еще текст</span> does not exceed. I would be grateful for the help!