I am not sure if “concatenate” is the correct term for it, but something like this:
$("#a").$("#b").$("#c").$("#d").click(); // click on all of them
Basically I have a long list of stuff but I can’t apply a class to them.
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.
As in CSS, you can use a comma to separate multiple selectors:
Note that these do not have to be the same kind of selector. For example:
Also, if you already have the jQuery objects, you can
add()the sets like so: