Hi,

First off, I really like jQuery - coming from MochiKit, it is nice to
have such a well put together library.

So here is my question: does anyone know how to stop event bubbling in
IE6?  I want to bind a new handler for an event on an element inside
of the initial handler.  Here is some test code:

        var sayhi = function(e) {
            alert('hi');
            e.stopPropagation(); // also tried $('mybutton').unbind()
            $('#mybutton').click(saybye);
        };

        var saybye = function(e) {
            alert('bye');
        };

        $(document).ready(
            function () {
                $('#mybutt').bind('click', sayhi);
            }
        );

In FF, I don't even need to unbind/stopPropagation - there is no
bubbling within the handler.  In IE6, no matter what I do, the event
bubbles to the new handler (saybye).  As I think about it, bubbles is
probably not the right term, but hopefully this makes sense to
someone.

Any thoughts?  Thanks,

Christian

Reply via email to