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

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

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

or the straightforward:

$('div[data-positiontype="3"][data-positiontitle*="test"], div[data-positiontype="3"][data-positiondesc*="test"]').

Viewing all articles
Browse latest Browse all 3

Trending Articles



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