Bootstrap - Give Each Element a Unique id

Please , my code can’t pass. :face_exhaling:

<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 id="target1" class="btn btn-default target"></button>
        <button id="target2" class="btn btn-default target"></button>
        <button id="target3" class="btn btn-default target"></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div id="target-2" class="well" id="right-well">
        <button class="btn btn-default target" id="target4"></button>
        <button class="btn btn-default target" id="target5"></button>
        <button class="btn btn-default target" id="target6"></button>
      </div>
    </div>
  </div>
</div>

Your browser information:

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

Challenge: Bootstrap - Give Each Element a Unique id

Link to the challenge:

1 Like

Hi Annie

Sometimes we just need a break and read with fresh eyes our code:

<div id="target-2" class="well" id="right-well">

Check that. You only can add the same type of attribute once. :smile:

You are doing great, keep the good work!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.