I currently have a selector that looks like this:
$("span[row!='2'][row!='5'][row!='1']");
Is there an easier way to write this? I tried this but it didn’t work:
$("span[row!='1,2,5']");
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.
No there is no way to combine not equal selectors in this manner. The result would be interpretted as the string
'1,2,3'and not individual values. You’ll have to enumerate the cases.You could though write a function to make this easier to write. For example
Usage