Categories

Blog categories

JavaScript

Blog Posts


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.
Posted by Ziyan Junaideen 03 May 2021
Learn how you can select a DOM element using vanilla JavaScript and hide it from the user. The methods discussed include hiding using CSS and removing the element from the DOM structure entirely.