2018-09-30 23:01:58 +01:00
|
|
|
---
|
|
|
|
id: bad87fee1348bd9aec908850
|
|
|
|
title: Apply the Default Bootstrap Button Style
|
|
|
|
challengeType: 0
|
|
|
|
guideUrl: 'https://guide.freecodecamp.org/certificates/apply-the-default-bootstrap-button-style'
|
|
|
|
---
|
|
|
|
|
|
|
|
## Description
|
|
|
|
<section id='description'>
|
|
|
|
Bootstrap has another button class called <code>btn-default</code>.
|
|
|
|
Apply both the <code>btn</code> and <code>btn-default</code> classes to each of your <code>button</code> elements.
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Instructions
|
|
|
|
<section id='instructions'>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
<section id='tests'>
|
|
|
|
|
|
|
|
```yml
|
|
|
|
- text: Apply the <code>btn</code> class to each of your <code>button</code> elements.
|
2018-10-02 15:02:53 +01:00
|
|
|
testString: 'assert($(".btn").length > 5, ''Apply the <code>btn</code> class to each of your <code>button</code> elements.'');'
|
2018-09-30 23:01:58 +01:00
|
|
|
- text: Apply the <code>btn-default</code> class to each of your <code>button</code> elements.
|
2018-10-02 15:02:53 +01:00
|
|
|
testString: 'assert($(".btn-default").length > 5, ''Apply the <code>btn-default</code> class to each of your <code>button</code> elements.'');'
|
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">
|
|
|
|
<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>
|
|
|
|
```
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Solution
|
|
|
|
<section id='solution'>
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|
|
|
|
</section>
|