Thursday, September 10, 2015

How do I cast a DOM element to a string in JavaScript?

Can you get .innerHTML from its parent perhaps? If it's not the only child of the parent or if it has some text sitting beside it you would have to split the string in this approach.

No comments:

Post a Comment