Skip to main content Accessibility Feedback

Tutorial: A simple show-and-hide script with vanilla JS

I recently recorded a few screencasts to go along with the projects in my new book, Ditching jQuery.

The first one is on how to build a simple show-and-hide script with vanilla JavaScript. If you like this, the rest of the screencasts are only available with the book. Check it out.

🚀 I just relaunched my Vanilla JS Pocket Guides with new code examples and real projects to help tie everything you’ll learn together. Check it out.

Have any questions or comments about this post? Email me at or contact me on Twitter at @ChrisFerdinandi.

Get Daily Developer Tips