AND Selector JQuery
Is it possible to use an AND selector in jQuery? I am trying to filter through results where I need multiple selectors to be true. This is what I use but instead of 'OR' so the ','
Solution 1:
Yes you can do that, you are actually looking for combined attribute selector
.
Try,
$('div.job[data-province!="'+province+'"][data-employment!="'+employment+'"][data-education!="'+education+'"][data-branch!="'+branch+'"]').fadeOut('slow');
Post a Comment for "AND Selector JQuery"