jQuery select "not this and not everything in this" -


i got plugin

$.fn.dropdown = function(options){     this.each(function(){         var $this= $(this);         $(document).click(function(e){             if($(e.target).not($this) && $(e.target).not($this).find('*')){                 // stuff             }         });       }); } 

i want select "not , not in this" ,so far, doesn't work.

this should work:

var = this; $(document).click(function(e) {     if( e.target != && !$.contains(that, e.target) ) {         // stuff     } }); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -