Prevent click event on the clicked element?
        Posted  
        
            by 
                nainy
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by nainy
        
        
        
        Published on 2013-10-31T09:48:24Z
        Indexed on 
            2013/10/31
            9:53 UTC
        
        
        Read the original article
        Hit count: 283
        
JavaScript
|jQuery
I have a click event on the body of my document:
$("body").on('click.findElem', function(e) {                 
            e.stopPropagation();  
            e.preventDefault();    
            self.hinter(e.target);            
            return false;
        });
It basically catches the clicked target and does something to it. However, there are some targets that already have a click event on them, and they prevent my click from being executed at all. How do I overcome that issue? I tried unbinding it, but the click doesn't even work at all to actually execute the unbinding.
© Stack Overflow or respective owner