Remove and Empty Elements in jQuery
remove() deletes the node; empty() clears children only.
jQuery tutorials for DOM, events, and AJAX
remove() deletes the node; empty() clears children only.
Move through the DOM relative to a selection: parents, children, siblings.
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.