What is the benefit of using parent/child functions in Jquery? Why not just assign the line of code to specific elements?
Can you give an example of what you’re talking about?
They may come in handy when you don’t know what the parent or children are. Also it only gives you the direct underlaying layer, if that makes sense. So if you have the following code:
`
Is child of #parent
Is not a child of #parent
If you can target specific elements I don’t really see a need to use these functions.