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