Convert simple function from jQuery to pure JavaScript

Printable View