find html of search object in javascriopt

Subject:

 

// Gives you the DOM element without the outside wrapper you want $('.classSelector').html() // Gives you the outside wrapper as well $('.classSelector')[0].outerHTML

2016-06-02 16:41:58gstlouis

EDITBasic support stats for element.outerHTML

references: http://stackoverflow.com/questions/2419749/get-selected-elements-outer-html

gstlouis
vote
2016-06-02 16:42:32