2018-10-12 15:37:13 -04:00
---
title: Create a Class to Target with jQuery Selectors
---
2019-07-24 00:59:27 -07:00
# Create a Class to Target with jQuery Selectors
2018-10-12 15:37:13 -04:00
2019-07-24 00:59:27 -07:00
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
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.
2019-07-24 00:59:27 -07:00
### Hint 1
2018-10-12 15:37:13 -04:00
Edit the classes
2019-07-24 00:59:27 -07:00
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```html
<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>
```
2019-07-24 00:59:27 -07:00
</details>