Why not do:
$('#first').click(function(e) { e.preventDefault(); });

--John


On Mon, Mar 23, 2009 at 9:20 AM, John Smith <master9...@gmail.com> 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 detect if user clicked outside #second container $
> (document).click(function () { alert('clicked somewhere'); });
>
> Clicking on #first doesn't show me alert. Is there any way to force
> bubbling??. I cant add this alert to #first click, because there can
> be 1000 that kind of elements.

Reply via email to