--- 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 forumTopicId: 18316 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: Use the jQuery addClass() function to give the classes animated and shake to all your elements with the class well. testString: assert($(".well").hasClass("animated") && $(".well").hasClass("shake")); - text: Only use jQuery to add these classes to the element. testString: assert(!code.match(/class\.\*animated/g)); ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```html

jQuery Playground

#left-well

#right-well

```