Looking at some code, I see this line: $("div").disableSelection();
What the…
In the CSS, there are no divs named “div”, so is the above line of code referencing all divs in the CSS?
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.
Yes, jquery’s selection syntax is Tag:symbol:name where tag is any HTML tag, symbol is either
.for class or#for id, and name is the value to match in class/idSo
$("h1")would select all<h1>tags in the page,$("h1.foo")would select all tags matching<h1 class="foo">, and finally$(".bar")would match all elements regardless of tag withclass="bar"