--- id: bad87fee1348bd9aed908826 title: Change the CSS of an Element Using jQuery required: - link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css' challengeType: 6 forumTopicId: 16776 localeTitle: Изменение CSS элемента с помощью jQuery --- ## Description
Мы также можем изменить CSS элемента HTML непосредственно с помощью jQuery. Функция jQuery имеет функцию под названием .css() которая позволяет вам изменять CSS элемента. Вот как мы изменим его цвет на синий: $("#target1").css("color", "blue"); Это немного отличается от обычного объявления CSS, поскольку свойство CSS и его значение находятся в кавычках и разделены запятой, а не двоеточием. Удалите селектор jQuery, оставив свободную document ready function . Выберите target1 и измените цвет на красный.
## Instructions
## Tests
```yml tests: - text: Your target1 element should have red text. testString: assert($("#target1").css("color") === 'rgb(255, 0, 0)'); - 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

```