I tried this but it’s not working:
var a = $('a');
var b = $('p');
var c = $('div');
$(a, b, c).hide();
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.
jQuery selectors work like CSS selectors. You can select multiple independent sets of elements if you separate their selectors with commas:
If you already have fetched the different sets, you have the option of re-fetching them together (above), running
.hide()on each one, or merging the sets to run.hide()once:For more information see the
.add()documentation.