# SOLVED: Can't seem to pass "Target the same element with multiple jQuery Selectors"

**URL:** <https://forum.freecodecamp.org/t/solved-cant-seem-to-pass-target-the-same-element-with-multiple-jquery-selectors/97504>\
**Category:** General\
**Created:** [March 17, 2017, 5:54am UTC](https://forum.freecodecamp.org/t/solved-cant-seem-to-pass-target-the-same-element-with-multiple-jquery-selectors/97504 "2017-03-17T05:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![esclavosoy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/esclavosoy/32/162928_2.png) [@esclavosoy](https://forum.freecodecamp.org/u/esclavosoy)\
**Post date:** [March 17, 2017, 5:54am UTC](https://forum.freecodecamp.org/t/solved-cant-seem-to-pass-target-the-same-element-with-multiple-jquery-selectors/97504/1 "2017-03-17T05:54:21Z")

</div>

It tells me only to “Only add one class with each of your three selectors.” and “Your #target1 element should have the classes animated‚ shake and btn-primary.”. Seems to contradict itself and I can’t pass this stage.

Hope you can help.

TIA,

Gabriel

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [March 17, 2017, 7:31am UTC](https://forum.freecodecamp.org/t/solved-cant-seem-to-pass-target-the-same-element-with-multiple-jquery-selectors/97504/2 "2017-03-17T07:31:32Z")

</div>

The instruction spell it out:

- 

```
Add the animated class to all elements with type button.

```

- 

```
Add the shake class to all the buttons with class .btn.

```

- 

```
Add the btn-primary class to the button with id #target1.

```

For the first one you need to use an element selector, for the second a class selector, and lastly and id selector.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:50pm UTC](https://forum.freecodecamp.org/t/solved-cant-seem-to-pass-target-the-same-element-with-multiple-jquery-selectors/97504/3 "2021-01-17T20:50:17Z")

</div>

Closed on January 17, 2021, 8:50pm UTC


