I'm aware that live calls bubble up through the doccument and that is why I'm having issues.
Unfortunately I'm using third party libraries that bind elements and would like to create a case in which a click event isn't bubbled up to those elements.
using .click() in combination with eventStopPropogation works just fine, however due to the dynamic nature of the content I need to use either live,on,delegate,etc... Here's a fidddle of my issue. I need to prevent "outer" click from firing when clicking the "inner" div. I can not change the "outer" handler.
Thanks in advance for your help!!
HTML:
<div id="outer">
outer
<div id="inner">
inner
</div>
</div>
Javascript:
$("#outer").bind('click',function(e){
alert("outer clicked");
});
$("#inner").live('click',function(e){
alert("inner clicked");
});