Response title
This is preview!
Given a jQuery object that represents a set of DOM elements, the
.parent()
method allows us to search through the parents of these elements in the DOM tree and construct a new jQuery object from the matching elements.The.parents()
and.parent()
methods are similar, except that the latter only travels a single level up the DOM tree.
© 2013 jQuery Foundation
Sponsored by and others.