get selected element html jquery code example Example: get selected element html jquery $('.classSelector')[0].outerHTML