pythad
pythad

Reputation: 4267

How to change object's html?

I have an object captured by infoTab.elements[1].

Here is the object Object { type="html", html="or<hr>"}.

How can I change object.html in the DOM?

Upvotes: 1

Views: 39

Answers (1)

user2226755
user2226755

Reputation: 13159

infoTab.elements[1]; // Object { type="html",  html="or<hr>"} 

console.log(infoTab.elements[1].html); // or<hr>

infoTab.elements[1].html = "2<hr>";

console.log(infoTab.elements[1].html); // 2<hr>

Upvotes: 1

Related Questions