Get the parent of an element.