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
Post a Comment