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()), 'Create a new button
element with the text "Delete".');
- text: All of your Bootstrap buttons should have the btn
and btn-block
classes.
testString: assert($("button.btn-block.btn").length > 2, 'All of your Bootstrap buttons should have the btn
and btn-block
classes.');
- text: Your new button should have the class btn-danger
.
testString: assert($("button").hasClass("btn-danger"), 'Your new button should have the class btn-danger
.');
- text: Make sure all your button
elements have a closing tag.
testString: assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: