plainJS

Archive

Tag: parent

  1. Unwrap a DOM element$.unwrap()
  2. Wrap an HTML structure around an element$.wrap(), $.wrapAll()
  3. Get closest element by selector$.closest()
  4. Get parent element node$.parent(), $.parents()
  5. Get the offset position of an element relative to its parent$.position()