jquery

How to access child element(s) of parent element using jQuery?

How to access child element(s) of parent element using jQuery?

jQuery provides with quite a handful of useful functions to traverse through child elements in different ways. I’ll summarize few important of them children() This method will return all the direct children of Parent element.

parent() This method returns parent element of current child element

  ¬†parents() This method is similar to parent()

0