In this challenge you will be creating an application that will create colored <div>
tag each time the corresponding color is clicked. As each color (button) is clicked, it should increment the corresponding label. HTML and CSS are provided, the focus here is jQuery.
To start this code challenge fork this repository and clone it to your machine.
IMPORTANT CONSIDERATIONS
- HTML and CSS are provided and shouldn't require code changes.
- You can use jQuery's
.data()
method to retrieve thedata-color
HTML attributes. A relevant StackOverflow.
Here is an image of how things should look:
Here is a gif of how things should like in action:
Gif not quite big enough? See the full video here.