I've never had any issues with it on any common browsers, including IE6.
On Feb 4, 4:05 pm, Pedram <pedram...@gmail.com> wrote: > Ow Great so $(this).val() returns the Option value , is this > acceptable by IE because , I think I had a Problem with that before . > > On Feb 4, 10:52 am, James <james.gp....@gmail.com> wrote: > > > Change should work. > > > $("select.actions").change(function(){ > > if ( $(this).val() == 'NEW' ) alert('NEW was selected'); > > else alert('NEW was not selected'); > > > }); > > > On Feb 4, 6:56 am, Pedram <pedram...@gmail.com> wrote: > > > > Dear folk , > > > I have a select box with Multiple Options > > > Such as below > > > <Select class="actions"> > > > <option value="NEW">New/Edit</option> > > > <option value="a">1</option> > > > <option value="b">2</option> > > > <option value="c">3</option> > > > </select> > > > > I wanted to bind a Click event to the select box , so when ever we > > > Click on the Option with the NEW value > > > alert box appears this is my code > > > > $("select.actions option[value=NEW]").click(function(){ > > > alert("worked"); > > > > }); > > > > this works in Firefox no problem I have problem in IE it doesn't work > > > without any error it seems .CLICK is not supported by IE for > > > Selectboxes , I also checked the .Change Worked > > > > $("select.actions").change(function(){ > > > if($(this).find("option[value=NEW]") > > > alert("worked"); > > > > }); > > > > But does anyone have an Idea or solution for me > > > Thanks > >