/ Published in: jQuery
Gets the currently selected element as a string.
Usage:
$("div#item1").toHTMLString();
Usage:
$("div#item1").toHTMLString();
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery.fn.extend({ toHTMLString: function() { return $('<div>').append(this.clone()).remove().html(); }});