jquery return outer html code example
Example: jquery select outer html
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);