How to get option id in select box using jquery ?
Hi All,
Please any one help to get option id in select box using jquery ?
Example
if i will select same4 option i have to get one alert box it will show id of same4 option i.e 4. How we can do it .Please any one give reply
<
select
> <
option
id
=
"1"
value
=
"same"
>
same1
</
option
> <
option
id
=
"2"
value
=
"same"
>
same2
</
option
> <
option
id
=
"3"
value
=
"same1"
>
same3
</
option
> <
option
id
=
"4"
value
=
"same"
>
same4
</
option
>
</
select
>
Thanks,
Nazeer