Skip to content Skip to sidebar Skip to footer

Can I Get The Full Html Representation Of An Htmlelement Dom Object?

I'm using jquery to parse some HTML, something like: $(html).contents().each(function(){ var element = this.tagName; ... I can access the tagName, children, parent... using th

Solution 1:

Looks like this guy has a pretty nifty solution using jQuery: outerHTML

Solution 2:

just saw the anwser for this on the other thread :D

outerHTML

outerHTML 2

Post a Comment for "Can I Get The Full Html Representation Of An Htmlelement Dom Object?"