I can't seem to get this to work, it is probably pretty simple but here we go:
This is my selector and I want to look for an element with both the selection and selection class but this does not look for an element that has both. As far as I can tell it only grabs the first selection class and looks for that.
$(this).not("." + selection, "." + selection).hide();
I've tried manually inputting it like this and it works:
I'm guessing the comma seperates the selectors and it is going wrong there. How can I achieve the same functionality though?
+ to concatenate selection with dot
$(this).not("." + selection + "." + selection).hide();