2.3 KiB
2.3 KiB
id, title, challengeType, forumTopicId, localeTitle
id | title | challengeType | forumTopicId | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aec908849 | Add Elements within Your Bootstrap Wells | 0 | 16636 | Добавить элементы внутри ваших бутстрапов |
Description
div
на каждом столбце нашей строки. Это достаточная глубина для нашей цели. Теперь мы можем добавить элементы button
. Гнездо три button
элементы внутри каждого из well
div
элементов.
Instructions
Tests
tests:
- text: Nest three <code>button</code> elements within each of your <code>div</code> elements with class <code>well</code>.
testString: assert($("div.well:eq(0)").children("button").length === 3 && $("div.well:eq(1)").children("button").length === 3);
- text: You should have a total of 6 <code>button</code> elements.
testString: assert($("button") && $("button").length > 5);
- text: Make sure all your <code>button</code> elements have closing tags.
testString: assert(code.match(/<\/button>/g) && code.match(/<button/g) && code.match(/<\/button>/g).length === code.match(/<button/g).length);
Challenge Seed
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="well">
</div>
</div>
<div class="col-xs-6">
<div class="well">
</div>
</div>
</div>
</div>
Solution
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="well">
<button></button>
<button></button>
<button></button>
</div>
</div>
<div class="col-xs-6">
<div class="well">
<button></button>
<button></button>
<button></button>
</div>
</div>
</div>
</div>