/ Published in: jQuery

Gets the currently selected element as a string.
Usage: $("div#item1").toHTMLString();
Expand |
Embed | Plain Text
jQuery.fn.extend({ toHTMLString: function() { return $('<div>').append(this.clone()).remove().html(); }});
You need to login to post a comment.