jquery find elements by class and parent div code example Example: jquery has parent with class if ($elem.parents('.left').length) { }