On 26/03/07, Kush Murod <[EMAIL PROTECTED]> wrote:
> anyone?
>
> Kush Murod wrote:
> > Hi,
> >
> > I am trying to do event bubbling on selectbox, works in FF not in IE
> > Maybe I am missing something?
> >
> >         $("#workList").change(function(event){
> >             var me = $(event.target);
> >             alert(me.attr('name'));
> >
> >         });
> >
> >         <div class="list" id="workList">
> >              ...
> >              <select name="perpage" style="width:45px;">
> >                 <option value="50" label="50">50</option>
> >                 <option value="60" label="60">60</option>
> >              </select>
> >              ...
> >         </div>
> >
> >
>

Any reason why you can't just do:

$("#workList select").change(function(){
    alert("Selected: " + this.value);
});

No bubbling required.

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to