jQuery: add html elements after last option element in a dropdown list -


i'm trying add html elements after last option element of dropdown list without success.

this tried:

jquery('select#extended-categories-select-2:last-child').after('<div><b></b></div>'); 

any other suggestions or ideas?

do :

instead of last-child, need use last.

jquery('select#extended-categories-select-2 option:last').after('<div><b></b></div>'); 

Comments