jQuery: Difference between parent(), parents() and parentsUntil() methods

Definition:
parent() - Use this method to get direct parent element of the current selected element.
parents() - Use this method to get all parent elements of the current selected element.
parentsUntil() - Us this method to get all ancestor elements between the selector and the parameter you have selected in the parentsUntil() method. In this method parameter inside the parentsUntil('#parent1') is essential part, if you missed to use parameter it will work like parents() method.

Demo:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.