Parent and Parents in jQuery
Use parent(), parents(), and closest() to walk up the tree.
Use parent(), parents(), and closest() to walk up the tree.
Get/set styles with .css(); prefer classes for reusable design.
Expand/collapse height with slideDown, slideUp, and slideToggle.
Use .attr() for HTML attributes and .prop() for DOM properties.
Manage CSS classes with addClass, removeClass, toggleClass, and hasClass.