SyntaxFix
Write A Post
Hire A Developer
Questions
var id = $(this).find('option:selected').attr('id');
then you do whatever you want with selectedIndex
selectedIndex
I've reedited my answer ... since selectedIndex isn't a good variable to give example...