jquery select outer html
snippet in javascript

jquery select outer html

user7059

var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);