jQuery pilih html luar
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);
Matteoweb
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);