The UX Designer Toolbox
Unlimited Downloads: 500,000+ Wireframe & UX Templates, UI Kits & Design Assets
Starting at only $16.50 per month!
This website has a section that provides you with handy functions for selecting, traversing, and manipulating DOM elements.
CSS Tricks has a nice collection of all different kinds of code snippets, including this great list of JS snippets.
Focusing on beginners, and a bit dated, but this list is still a worthwhile resource to keep in your back pocket.
Thousands of useful snippets in a simple format and easily searchable!
This post may contain affiliate links. See our disclosure about affiliate links here.