I’m trying to understand the
jQuery( element )
part of the jQuery documentation.
Q: Is this their example of what an element is:
$(myForm.elements).hide();
It’s the last example in the section.
What is an element vs. a selector?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A DOM element is an element that has been fetched by a native browser method, such as
getElementById("element"). A selector is a jQuery selector string, such as#element. Those two select the same thing.