jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery parent() Method

jQuery parent() Method



The parent() method is used to return the direct parent element of the selected element. It only traverses a single level up the DOM(Document Object Model) tree. For traversing up to the root, we have to use the parents() method.




Its syntax is:- $(selector).parent(filter)


Further Explanation:-


Parameter Description
filter Optional. Specifies a selector expression to narrow down the parent search

Code Explanation

All Tutorials related to jQuery Traversing

All Sections related to Jquery