j query see if div has parent code example Example: jquery get the parent node $(selector).parent(filter)