!$ in jQuery looks a bit weird

What means in Jquery the !$

if (!$("#id-1").css

I see that it can be used with :checked so if set ! before element name that means false or something so not :not(:checked) or ?

Thanks

so in an if statement, the ! is a negation operator. It means “if not ($("#id-1").css(...) )” or whatever value.

1 Like

Is can apply for all jQuery selector? I mean for .is()

In that case, I might not use .is(..) – instead, use .not(...).