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