Is there any way in jQuery to check if any parent, grand-parent, great-grand-parent has a class.
I have a markup structure that has left me doing this sort
You can use parents method with specified .class selector and check if any of them matches it:
parents
.class
if ($elem.parents('.left').length != 0) { //someone has this class }