Quantcast
Channel: JQuery multiple AND OR selector - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by GrafiCode for JQuery multiple AND OR selector

You possible outcomes are:.a.c.a.d.b.c.b.dhence:$('.a.c, .a.d, .b.c, .b.d')

View Article


Answer by jfriend00 for JQuery multiple AND OR selector

You could use a compound statement where you get all the items that meet the first criteria then filter that out to just the items that meet the second criteria. This is a bit more scalable if there...

View Article

Answer by Tyler Crompton for JQuery multiple AND OR selector

If it's truly that simply, you could just do the Cartesian product and list each possibility:$('.A.C, .A.D, .B.C, .B.D');

View Article

JQuery multiple AND OR selector

I need to select HTML DOM elements with multiple selectors.For example, I would like to select all dom that have classes A or B and classes D or C.Litteraly :((A OR B) AND (C OR D))How can i do that in...

View Article
Browsing all 4 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>