What's the difference between $ and $$? It seems like they both return a list of nodes, but filter isn't applicable to $$ and throws an exception.
What are the other differences?

3

1 Answer

$ is a variable name. $$ is a different variable name.

jQuery assigns a function to the $ variable.

jQuery does nothing (by default) to the $$ variable (so it will be undefined unless something else assigns a value to it).

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy