How to get the selected index id from the dropdown list?