I’m new to jQuery. I know you can use $('.selector [attribute=value]') to select objects in the dom but is it possible to use several atributes at once?
For example:
$('.selector [attribute=value], [attribute2=value2]')
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.
The syntax is:
But if you find yourself having to create complex attribute filters, using the
filter()function might be a cleaner alternative: