I see. Yeah, select elements doesn't work like that.
Though I found that "click" can work that way if you give the select
element with a size attribute:
<select class="actions" size="4">
So if you re-click a selected element, it'll fire.

Does this option fit with your design?

On Feb 4, 6:01 pm, Pedram <pedram...@gmail.com> wrote:
> Thanks , great , But consider the I want the user to Click in a Option
> which is selected right now and An event Fire Ups so Click dosen't
> work for IE and CHange doen't support it
>
> 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
>
>

Reply via email to