Skip to content

Instantly share code, notes, and snippets.

@3200pro
Created July 26, 2022 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3200pro/a65244c01ca2038f62d5879544650f76 to your computer and use it in GitHub Desktop.
Save 3200pro/a65244c01ca2038f62d5879544650f76 to your computer and use it in GitHub Desktop.
Insert HTML string after element
const insertHTMLAfter = (html, el) => el.insertAdjacentHTML('afterend', html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment