freeCodeCamp Challenge Guide: Create a Class to Target with jQuery Selectors

Create a Class to Target with jQuery Selectors


Problem Explanation

The last challenge had you adding some classes to your html <button></button> elements to style them, this time you are required to add other classes to those buttons which would allow jQuery to target them.


Hints

Hint 1

Edit the classes


Solutions

Solution 1 (Click to Show/Hide)
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="well">
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
        <button class="btn btn-default target"></button>
      </div>
    </div>
  </div>
</div>
2 Likes

This is not helpful. It just repeat the question?

1 Like

Hi there,
Isn’t necessary to do a new class, look the image.
Thanks

3 Likes