jquery outer html
Get selected element's outer HTML
$.fn.outerHTML = function(s) { return s ? this.before(s).remove() : jQuery("<p>").append(this.eq(0).clone()).html(); };
jquery outer html
Reviewed by Bhaumik Patel
on
10:04 PM
Rating:
$.fn.outerHTML = function(s) { return s ? this.before(s).remove() : jQuery("<p>").append(this.eq(0).clone()).html(); };