--- 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 videoUrl: '' localeTitle: Cambia el CSS de un elemento usando jQuery --- ## Description
También podemos cambiar el CSS de un elemento HTML directamente con jQuery. jQuery tiene una función llamada .css() que te permite cambiar el CSS de un elemento. Así es como cambiaríamos su color a azul: $("#target1").css("color", "blue"); Esto es ligeramente diferente de una declaración CSS normal, porque la propiedad CSS y su valor están entre comillas y se separan con una coma en lugar de dos puntos. Borre sus selectores de jQuery, dejando una document ready function vacío document ready function . Seleccione target1 y cambie su color a rojo.
## Instructions
## Tests
```yml tests: - text: Su elemento target1 debe tener texto rojo. testString: 'assert($("#target1").css("color") === "rgb(255, 0, 0)", "Your target1 element should have red text.");' - text: Solo use jQuery para agregar estas clases al elemento. testString: 'assert(!code.match(/class.*animated/g), "Only use jQuery to add these classes to the element.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

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