.closest()
Term side of the Card
Topic: Object on Page
Unit title: .closest()
Categories: Method
Explanation side of the Card
Explanation: The browser API method that traverses the DOM to find the nearest ancestor of the current element that matches a given selector. It's often used to find parent elements based on specific criteria.
Browser compatibility:
- The chrome browser supports this feature starting from version 41
- The edge browser supports this feature starting from version 15
- The firefox browser supports this feature starting from version 35
- The safari browser supports this feature starting from version 6
Availability: