Suppose I have a Jquery Object $('.class0 .class1 .class2...'). I want to check if a class .classX is in this object. How can I do this? I don't think inArray() is not adapted
In the same time, just to make things clearer for me, if I have a Jquery Object $('.class0, .class1, .class2, ...') if I want to check if a class .classX is in this object, I should use inArray() method, right?
.classXwas in the selector even if there are no matching elements of.classX? It's easy to find if your jquery object contains any elements ofclassXbut a different question if you need to know if the selector contained the class.