\[code\]var classFind= $('.frame').parent().parent().parent().parent().parent();if (classfind.hasClass(".class")) { return true; }\[/code\]I have a class that is located according to this path^... How could I loop through the dom to automate this process with better code readability? If it does not find the .hasclass before it hits a null then simply return false.