how to get the selected index of a drop down

$("select[name="CCards"] option:selected") should do the trick

See jQuery documentation for more detail: http://api.jquery.com/selected-selector/

UPDATE:
if you need the index of the selected option, you need to use the .index() jquery method:

$("select[name="CCards"] option:selected").index()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)