--- title: Target Even Elements Using jQuery --- # Target Even Elements Using jQuery ## Hints ### Hint # 1 Here's how you would target all the `odd-numbered` elements with class target and give them classes: ```javascript $('.target:odd').addClass('animated shake'); ``` This will shake all the even ones: ```javascript $('.target:even').addClass("shake"); ``` The right way to do it would be $ `("button: even")` ... ## Solutions
Solution 1 (Click to Show/Hide) ```html

jQuery Playground

#left-well

#right-well

```