search parent element for which child has class code example Example: jquery get the parent node $(selector).parent(filter)