--- id: bad87fee1348bd9aedc08826 title: Target Elements by Class Using jQuery required: - link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css' challengeType: 6 videoUrl: '' localeTitle: Целевые элементы по классам Использование jQuery --- ## Description
Вы видите, как мы отбросили все ваши элементы button ? Мы выбрали их с помощью $("button") , затем мы добавили к ним некоторые классы CSS с .addClass("animated bounce"); , Вы только что использовали .addClass() jQuery, которая позволяет добавлять классы к элементам. Во- первых, давайте нацеливать свои div элементы с классом well с помощью $(".well") селектор. Обратите внимание, что, как и в объявлениях CSS, вы вводите a . перед именем класса. Затем с помощью jQuery в .addClass() функцию , чтобы добавить классы animated и shake . Например, вы можете сделать все элементы с $(".text-primary").addClass("animated shake"); типа text-primary , добавив следующее к вашей document ready function : $(".text-primary").addClass("animated shake");
## Instructions
## Tests
```yml tests: - text: 'Используйте jQuery addClass() функцию , чтобы дать классы animated и shake , чтобы все ваши элементы с классом well .' testString: 'assert($(".well").hasClass("animated") && $(".well").hasClass("shake"), "Use the jQuery addClass() function to give the classes animated and shake to all your elements with the class well.");' - text: 'Используйте только jQuery, чтобы добавить эти классы к элементу.' testString: 'assert(!code.match(/class\.\*animated/g), "Only use jQuery to add these classes to the element.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```