i wanna read the value of a html span. how i can do this?
here is the code:
//this works
spanRight= document.getElementsByClassName("spanRight")
//but i cant get the text
spanRight = spanRight.text;
<span class="spanRight">1234567890</span>
thank you for your help