Is there a Native Javascript way to get an elements innerHTML AND its own html? How can I get the full html string including the selected element itself?
Hope that makes sense. This example shows a JQuery way to do what I want so hopefully this explains clearly what I am trying to do: http://jquery-howto.blogspot.com/2009/02/how-to-get-full-html-string-including.html
Its not as simple as this is it?
var allHTML = myEle.outerHTML + myEle.innerHTML;