Can you explain what the following selector mean?
$(“input:checkbox.compbox”)
Thank you.
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.
It’s looking for elements like this:
It’s looking for three things:
<input />type="checkbox"inputcompboxSince the selector has no spaces, it’s look for individual elements that meets all three criteria, not children/descendants or anything like that. For additional info, you can find a full list of selectors here, a great getting started guide here and a video tutorial on selectors here.