The .css() method and random color generator

Published on: April 28, 2018

Welcome to tutorial number 9 of the Easy jQuery series, part of In today's tutorial, we're going to look at something we've already seen. The .css() jQuery method. I've used this in the past to showcase changes that are happening because of our code, and css makes it easy to see and recognize those changes. Let's dig a little deeper into the method by looking at some examples. 

At the end of the tutorial, I show you a quick way of creating a random color generator which generates a new RGB color for you with a click of a button!

I hope you enjoyed this tutorial! Please feel free to ask questions below or just leave your basic comments. 

To fork the fiddle and follow along:

Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!