Sorry if I was not clear on my question. I'm starting with JS and jQuery and my question is this: in the code below, is there any way to instead search for classes, search for words?
when(function() {
return jQuery != undefined && jQuery('.classe1, .classe2').length;
})