Updated based on @kangax's gist https://gist.github.com/1095042 and it works like a charm
No-Library (pure JS), HTML, CSS, JavaScript
jQuery (edge), HTML, CSS, JavaScript
jQuery 1.10.1, HTML, CSS, JavaScript
jQuery 3.1.1, HTML, CSS, JavaScript
A plain JavaScript example
jQuery 3.4.1, HTML, CSS, JavaScript