Give Each Element a Unique id challenge

Give Each Element a Unique id challenge
0.0 0

#1

Tell us what’s happening:
I am trying to fix this it’s not working what could be the challenge
here is the task
"Give each of your buttons a unique id, starting with target1 and ending with target6.

Make sure that target1 to target3 are in #left-well, and target4 to target6 are in #right-well"

here is my code so far


<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target1"></button>
        <button class="btn btn-default target2"></button>
        <button class="btn btn-default target3"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target4"></button>
        <button class="btn btn-default target5"></button>
        <button class="btn btn-default target6"></button>
      </div>
    </div>
  </div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/bootstrap/give-each-element-a-unique-id


#2

You didn’t ad ids to any of the buttons.


#3

the challenge wants unique ‘id’ not unique ‘class’
Just move the target1 etc to an id field instead of class field.


#4

I don’t understand can you give me with an example?


#5

I added an "id " to it but still leaving the "class " and nothing happened. Or should i take of the "Class " in Place of the “id”?


#6

above is one line from your code
See how you put the word ‘target4’ inside the double quotes labeled ‘class’ ?
You want to put it instead in a field called id.

Here’s a generic example:

<p id="thisIsAnIdField"> my paragraph has an id field </id>

#7

i would reset the code so there’s nothing in it that is unexpected. (there’s a button you can use for that)
and just follow the instructions exactly (if they say define an id, that means don’t touch class, but add an id)


#8

Okay I got that Thanks


#9

I have fixed it thanks for the assistance