--- 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 videoUrl: '' localeTitle: Eliminar clases de un elemento con jQuery --- ## Description
De la misma manera que puede agregar clases a un elemento con la función addClass() jQuery, puede eliminarlas con la función removeClass() jQuery. A continuación le indicamos cómo haría esto para un botón específico: $("#target2").removeClass("btn-default"); btn-default clase btn-default de todos nuestros elementos de button .
## Instructions
## Tests
```yml tests: - text: Elimine la clase btn-default de todos sus elementos de button . testString: 'assert($(".btn-default").length === 0, "Remove the btn-default class from all of your button elements.");' - text: Utilice solo jQuery para eliminar esta clase del elemento. testString: 'assert(code.match(/btn btn-default/g), "Only use jQuery to remove this class from the element.");' - text: Sólo elimine la clase btn-default . testString: 'assert(code.match(/\.[\v\s]*removeClass[\s\v]*\([\s\v]*("|")\s*btn-default\s*("|")[\s\v]*\)/gm), "Only remove the btn-default class.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```