Jump to content
Sign in to follow this  
abdu

Convert element node to string text using javascript

Recommended Posts

How do we convert element node, ie nodeType is 1, to string text using javascript ?

Edited by abdu

Share this post


Link to post
Share on other sites

What string are you looking for? The element's tag name or the content within the element? What do you want to do with the string once you have it?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×