[jQuery] Re: Removing Single Option from Select

2009-03-28 Thread iceangel89
THANKS! On Mar 27, 8:00 pm, Pierre Bellan wrote: > Hi, > you select your select : > > $('#myselect'); > > then u find the option with the value -1 : > > $('#myselect').find('option[value=-1]') > or > $('#myselect option[value="-1"]'); > > finally you removed it > $('#myselect option[value="-1"]'

[jQuery] Re: Removing Single Option from Select

2009-03-27 Thread Pierre Bellan
Hi, you select your select : $('#myselect'); then u find the option with the value -1 : $('#myselect').find('option[value=-1]') or $('#myselect option[value="-1"]'); finally you removed it $('#myselect option[value="-1"]').remove(); Pierre 2009/3/27 iceangel89 > > How can i remove a single