2018-10-10 18:03:03 -04:00
---
id: bad87fee1348bd9aec908852
title: Create a Class to Target with jQuery Selectors
challengeType: 0
videoUrl: ''
localeTitle: Создание класса для цели с помощью селекторов jQuery
---
## Description
2018-11-04 20:28:51 +03:00
< section id = "description" > Н е каждый класс должен иметь соответствующий CSS. Иногда мы создаем классы только с целью более простого выбора этих элементов с помощью jQuery. Создайте класс для каждого из ваших элементов < code > button< / code > < code > target< / code > . < / section >
2018-10-10 18:03:03 -04:00
## Instructions
< section id = "instructions" >
< / section >
## Tests
< section id = 'tests' >
```yml
tests:
- text: Примените < code > target</ code > класс к каждому из элементов вашей < code > button</ code > .
testString: 'assert($(".target").length > 5, "Apply the < code > target< / code > class to each of your < code > button< / code > elements.");'
```
< / 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 >