$('option').click(function(){
        var index = $('option').index(this) + 1; //index() will return zero
based result so  plus 1 here
});






On Jun 9, 8:23 am, "David .Wu" <chan1...@gmail.com> wrote:
> if I have a menu, how to get the position of the option after I select
> one of it?
>
> for example, if I choose b, and the position should b 2.
> <select>
> <option>a</option>
> <option>b</option>
> <option>c</option>
> </select>

Reply via email to