How To Get An Id

I was unable to fetch an id from a dropdown list which have on change function.whenever im trying to print the id im getting A VALUE like this:$(this).val())…someone please help.

How does ‘option’ tags look like inside your select?



CHtml::activeId($model, 'attributeOfModelForDropdown')

to get the generated id