Skip to main content Skip to secondary navigation 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.

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

Get the Spare Parts Newsletter

Every week, I send out a short email packed with web development resources and interesting stuff from around the web.