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
if ($elem.parents('.left').length) { }