ads
Home Tags JQuery parent()

Tag: jQuery parent()

How to get child id of an element (div) using jQuery?

Using children() method we can retrieve id of element a single level down the DOM tree.

How to get parent id of an element (div) using jQuery?

Using parent() method we can retrieve the id of an element single level up the DOM tree.