--- id: bad87fee1348bd9bedc08826 title: Target HTML Elements with Selectors Using jQuery required: - link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css' challengeType: 6 forumTopicId: 18319 localeTitle: Целевые элементы HTML с селекторами Использование jQuery --- ## Description
Теперь у нас есть document ready function . Теперь давайте напишем наш первый оператор jQuery. Все функции jQuery начинаются с $ , обычно называемого dollar sign operator , или как bling . jQuery часто выбирает элемент HTML с selector , затем делает что-то с этим элементом. Например, давайте сделаем все ваши элементы button отскоком. Просто добавьте этот код в свою готовую документ: $("button").addClass("animated bounce"); Обратите внимание, что мы уже включили библиотеку jQuery и библиотеку Animate.css в фоновом режиме, чтобы вы могли использовать их в редакторе. Таким образом, вы используете jQuery для применения класса bounce Animate.css к вашим элементам button .
## Instructions
## Tests
```yml tests: - text: Use the jQuery addClass() function to give the classes animated and bounce to your button elements. testString: assert($("button").hasClass("animated") && $("button").hasClass("bounce")); - text: Only use jQuery to add these classes to the element. testString: assert(!code.match(/class.*animated/g)); - text: Your jQuery code should be within the $(document).ready(); function. testString: assert(code.match(/\$\(document\)\.ready\(function.*(\s|\n)*.*button.*.addClass.*\);/g)); ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```html

jQuery Playground

#left-well

#right-well

```