jQuery selector .not() NOT working
Posted
by
Niko M.
on Stack Overflow
See other posts from Stack Overflow
or by Niko M.
Published on 2012-04-04T17:00:16Z
Indexed on
2012/04/04
17:29 UTC
Read the original article
Hit count: 185
JavaScript
|jQuery
I've built a jQuery selector for a function which looks like this:
$('html').not('.table-main tr[selected]').mousedown( function( e ) {
But somehow it is not filtering at all and i do not quite understand why. Even if i just leave ('.table-main') for the selector i still trigger the function when clicking into the table... What is wrong with that?
Using document or 'body' instead of 'html' does not help, as document is not triggering at all with .not() and 'body' results in the same.
© Stack Overflow or respective owner