I\'m trying to get the HTML of a selected object with jQuery. I am aware of the .html() function; the issue is that I need the HTML including the selected obje
.html()
// no cloning necessary var x = $('#xxx').wrapAll('').parent().html(); alert(x);
Fiddle here: http://jsfiddle.net/ezmilhouse/Mv76a/