Hello jQuery Lesson 3 - B
More using elements without declaring css beforehand
using parent selectors for jQuery to grab
Family-style
Using 'closest' instead of 'parent'
- parent
- parents
- gets all parents, all the way up to the root: document
- children
- Familia should be pink
- gets all children, grandchildren, etc, recursively
- closest
- gets only the first item that matches, searching up the DOM tree from the current element