On 26/03/07, Kush Murod <[EMAIL PROTECTED]> wrote:
>
>  So is this a bug or feature limitation?

Perhaps it doesn't work because DIV's don't have an 'onchange' event?
Also, IE does use event bubbling:
http://www.quirksmode.org/js/events_order.html (it was IE that first
used it)

>
>  Kush Murod wrote:
> Hi Mike,
>
>    1. Binding event after content loads works that perfectly.
>    2. However using bubbling works only in FF not in IE, that's too bad,
>
>       'cause I find bubbling more elegant and clean.
>
>
>  I'll just use method 1 for now.
>
>  Thanks heaps
>
>  --Kush
>
>  Mike Alsup wrote:
>
> Kush,
>
>  You just need to bind the change event to the select element after
>  it's been inserted into the DOM.
>
>  Mike
>
>
>  On 3/26/07, Kush Murod <[EMAIL PROTECTED]> wrote:
>
>  Hi Sam,
>
>   Still didn't work, my guess is
>   The reason I guess, because that 'select' is loaded through AJAX,
>   and once loaded event is not triggered, so I gotta use bubbling
>
>   --Kush
>
>
>   Sam Collett wrote:
>   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/
>
>
>  _______________________________________________
>  jQuery mailing list
>  discuss@jquery.com
>  http://jquery.com/discuss/
>
>
>
>  _______________________________________________
>  jQuery mailing list
>  discuss@jquery.com
>  http://jquery.com/discuss/
>
>  ________________________________
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

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

Reply via email to