Quantcast
Channel: jQuery selector with "and" and "or" - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Guffa for jQuery selector with "and" and "or"

You stack the selectors together to find elements that matches both, and use the , combinator between...

View Article


Answer by zerkms for jQuery selector with "and" and "or"

$('div[data-positiontype="3"]').filter('[data-positiontitle*="test"], [data-positiondesc*="test"]').or the straightforward:$('div[data-positiontype="3"][data-positiontitle*="test"],...

View Article


jQuery selector with "and" and "or"

Can somebody help me with the syntax of what I'm trying to do here?jQuery('(div[data-positiontype="3"]) && (div[data-positiontitle*="test"] || div[data-positiondesc*='test'])')Basically I need...

View Article
Browsing all 3 articles
Browse latest View live