I am trying to modify a plugin so it can work with an “OR” logic within the groups and with an “AND” logic between groups. This is working example. My code looks like:
if ($.inArray(tag, itemTags) > -1) {
return true;
}
If I have ["One","Two"] in tag how to implement the OR logic for it.
I’ve updated your fiddle with what I think is the functionality you’re after.
I just moved the logic around a bit.