how to find the previous parent of element jquery code example Example: jquery get the parent node $(selector).parent(filter)