--- id: bad87fee1348bd9aed918626 title: Remove Classes from an Element with jQuery required: - link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css' challengeType: 6 forumTopicId: 18264 localeTitle: Удаление классов из элемента с помощью jQuery --- ## Description
Таким же образом вы можете добавлять классы к элементу с addClass() jQuery, вы можете удалить их с removeClass() функции removeClass() jQuery. Вот как вы это сделаете для конкретной кнопки: $("#target2").removeClass("btn-default"); Давайте удалим btn-default из всех элементов button .
## Instructions
## Tests
```yml tests: - text: Remove the btn-default class from all of your button elements. testString: assert($(".btn-default").length === 0); - text: Only use jQuery to remove this class from the element. testString: assert(code.match(/btn btn-default/g)); - text: Only remove the btn-default class. testString: assert(code.match(/\.[\v\s]*removeClass[\s\v]*\([\s\v]*('|")\s*btn-default\s*('|")[\s\v]*\)/gm)); ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```html

jQuery Playground

#left-well

#right-well

```