plainJS

Archive

Tag: content

  1. Append or prepend to an element$.append(), $.appendTo(), $.prepend(), $.prependTo()
  2. Empty an element’s content$.empty()
  3. Get and set the HTML content of an element$.html()
  4. Get the text content of an element$.text()
  5. Insert an element after or before another$.after(), $.before(), $.insertAfter(), $.insertBefore
  6. Wrap an HTML structure around an element$.wrap(), $.wrapAll()