plainJS

Archive

Tag: DOM

  1. Create a DOM element$(string)
  2. Select the children of an element$.children()
  3. Get closest element by selector$.closest()
  4. Get parent element node$.parent(), $.parents()
  5. Removing an element$.remove(), $.detach()
  6. Replace a DOM element$.replaceAll(), $.replaceWith()
  7. Running code when the document is ready$(document).ready()
  8. Select DOM elements by CSS selector$(selector), $(selector, context)