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