On Oct 27, 1:25 am, BuckRogers <[EMAIL PROTECTED]> wrote: > How do you return the index of an option selected: > > <select> > <option value="A">a</option><option value="B">b</option><option > value="C">c</option> > </select> > > I want to return 0, 1 and 2 when the above optiones are selected
$('select').change(function () { var idx = this.selectedIndex; alert(idx); });