btn-danger
class is the button color you'll use to notify users that the button performs a destructive action, such as deleting a cat photo.
Create a button with the text "Delete" and give it the class btn-danger
.
Note that these buttons still need the btn
and btn-block
classes.
button
element with the text "Delete".
testString: assert(new RegExp("Delete","gi").test($("button").text()));
- text: All of your Bootstrap buttons should have the btn
and btn-block
classes.
testString: assert($("button.btn-block.btn").length > 2);
- text: Your new button should have the class btn-danger
.
testString: assert($("button").hasClass("btn-danger"));
- text: All of your button
elements should have closing tags.
testString: assert(code.match(/<\/button>/g) && code.match(/