Reputation:
var Before= stuff2[0].innerText;
Then I call (Before)
Html info, I want to grab the style info
<a href="/game/1679819" style="color: rgb(255, 90, 95);">1.09x</a>
I get the following response
"3.07x 4.38x 15.33x 1.07x 9.93x 1.04x 6.25x"
Upvotes: 0
Views: 38
Reputation: 15857
You can use .innerHTML
to get the HTML and related styles where as .innerText
gets just the text.
Upvotes: 1