[jQuery] Re: Forced bubbling

2009-03-23 Thread Karl Swedberg
On Mar 23, 2009, at 5:32 PM, John Smith wrote: In my case i need prevent bubbling. Guess there arent any way to do what i need :( sure there is. to prevent bubbling, use event.stopPropagation(); http://docs.jquery.com/Events/jQuery.Event#event.stopPropagation.28.29 --Karl Kar

[jQuery] Re: Forced bubbling

2009-03-23 Thread John Smith
In my case i need prevent bubbling. Guess there arent any way to do what i need :(

[jQuery] Re: Forced bubbling

2009-03-23 Thread John Resig
Why not do: $('#first').click(function(e) { e.preventDefault(); }); --John On Mon, Mar 23, 2009 at 9:20 AM, John Smith wrote: > > I have 2 containers > > i disabled event bubbling for first container. This is must have $ > ('#first').click(function() { return false; }); > > Now i need to dete