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