2018-09-30 22:01:58 +00:00
---
id: bad87fee1348bd9aec908852
title: Create a Class to Target with jQuery Selectors
challengeType: 0
---
## Description
< section id = 'description' >
Not every class needs to have corresponding CSS. Sometimes we create classes just for the purpose of selecting these elements more easily using jQuery.
Give each of your < code > button< / code > elements the class < code > target< / code > .
< / section >
## Instructions
< section id = 'instructions' >
< / section >
## Tests
< section id = 'tests' >
```yml
2018-10-04 13:37:37 +00:00
tests:
- text: Apply the < code > target</ code > class to each of your < code > button</ code > elements.
2018-10-20 18:02:47 +00:00
testString: assert($(".target").length > 5, 'Apply the < code > target< / code > class to each of your < code > button< / code > elements.');
2018-09-30 22:01:58 +00:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```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" > < / button >
< button class = "btn btn-default" > < / button >
< button class = "btn btn-default" > < / button >
< / div >
< / div >
< div class = "col-xs-6" >
< div class = "well" >
< button class = "btn btn-default" > < / button >
< button class = "btn btn-default" > < / button >
< button class = "btn btn-default" > < / button >
< / div >
< / div >
< / div >
< / div >
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
< / section >