--- id: bad87fee1348bd9aeda08826 title: Target Elements by id Using jQuery required: - link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css' challengeType: 6 forumTopicId: 18317 localeTitle: Целевые элементы по id Использование jQuery --- ## Description
Вы также можете настраивать элементы по их атрибутам id. Сначала target3 элемент button с target3 с помощью селектора $("#target3") . Обратите внимание, что, как и в объявлениях CSS, вы вводите # перед именем id. Затем используйте .addClass() jQuery для добавления классов animated и fadeOut . Вот как вы делаете элемент button с id target6 исчезающим: $("#target6").addClass("animated fadeOut") .
## Instructions
## Tests
```yml tests: - text: Select the button element with the id of target3 and use the jQuery addClass() function to give it the class of animated. testString: assert($("#target3").hasClass("animated")); - text: Target the element with the id target3 and use the jQuery addClass() function to give it the class fadeOut. testString: assert(($("#target3").hasClass("fadeOut") || $("#target3").hasClass("fadeout")) && code.match(/\$\(\s*.#target3.\s*\)/g)); - 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

```