2018-09-30 23:01:58 +01:00
---
id: bad87fee1348bd9aec908854
title: Label Bootstrap Wells
challengeType: 0
2019-07-31 11:32:23 -07:00
forumTopicId: 18223
2018-09-30 23:01:58 +01:00
---
## Description
<section id='description'>
For the sake of clarity, let's label both of our wells with their ids.
Above your left-well, inside its <code>col-xs-6</code> <code>div</code> element, add a <code>h4</code> element with the text <code>#left -well</code>.
Above your right-well, inside its <code>col-xs-6</code> <code>div</code> element, add a <code>h4</code> element with the text <code>#right -well</code>.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
2018-10-04 14:37:37 +01:00
tests:
2019-11-22 04:44:40 -08:00
- text: You should add an <code>h4</code> element to each of your <code>< ;div class="col-xs-6"> ;</code> elements.
2019-07-24 23:53:37 -07:00
testString: assert($(".col-xs-6").children("h4") && $(".col-xs-6").children("h4").length > 1);
2018-10-20 21:02:47 +03:00
- text: One <code>h4</code> element should have the text <code>#left -well</code>.
2019-07-24 23:53:37 -07:00
testString: assert(new RegExp("#left -well","gi").test($("h4").text()));
2018-10-20 21:02:47 +03:00
- text: One <code>h4</code> element should have the text <code>#right -well</code>.
2019-07-24 23:53:37 -07:00
testString: assert(new RegExp("#right -well","gi").test($("h4").text()));
2019-11-22 04:44:40 -08:00
- text: All of your <code>h4</code> elements should have closing tags.
2019-07-24 23:53:37 -07:00
testString: assert(code.match(/<\/h4>/g) && code.match(/<h4/g) && code.match(/<\/h4>/g).length === code.match(/<h4/g).length);
2018-09-30 23:01:58 +01:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="well" id="left-well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
</div>
</div>
<div class="col-xs-6">
<div class="well" id="right-well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
</div>
</div>
</div>
</div>
```
</div>
</section>
## Solution
<section id='solution'>
2019-05-02 05:24:38 -04:00
```html
<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 target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
</div>
</div>
<div class="col-xs-6">
<h4>#right -well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
</div>
</div>
</div>
</div>
2018-09-30 23:01:58 +01:00
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
</section>