user9129586
user9129586

Reputation:

How can I get all the style information about .innerText

    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

Answers (1)

imvain2
imvain2

Reputation: 15857

You can use .innerHTML to get the HTML and related styles where as .innerText gets just the text.

Upvotes: 1

Related Questions