Posted by
Ziyan Junaideen 03 May 2021
Use vanilla JavaScript to create HTML elements to inject into the DOM structure. Discussed methods include append, prepend, insert before, insert after and replace. In addition, it also touches on the HTML5 template tag to use with Rails partial rendering through XHR.