add .remove() challenge

This commit is contained in:
Quincy Larson
2015-07-30 18:12:29 -07:00
parent d4d4124158
commit 1d7fc8589c

View File

@ -375,6 +375,7 @@
" $('button').addClass('animated bounce');", " $('button').addClass('animated bounce');",
" $('.well').addClass('animated shake');", " $('.well').addClass('animated shake');",
" $('#target3').addClass('animated fadeOut');", " $('#target3').addClass('animated fadeOut');",
" $('button').removeClass('btn-default');",
"", "",
" });", " });",
"fcces", "fcces",
@ -464,13 +465,12 @@
"dashedName": "waypoint-remove-an-element-using-jquery", "dashedName": "waypoint-remove-an-element-using-jquery",
"difficulty": 0.078, "difficulty": 0.078,
"description": [ "description": [
"Now let's remove an HTML element entirely using jQuery.", "Now let's remove an HTML element from your page using jQuery.",
"jQuery has a " "jQuery has a function called <code>.remove()</code> that will remove an HTML element entirely."
], ],
"tests": [ "tests": [
"assert($('img').length === 0, 'Use jQuery to remove your <code>img</code> element from your page.')", "assert($('#target4').length === 0, 'Use jQuery to remove your \"target4\" element from your page.')",
"assert(editor.match(/<img/g), 'You should still have an <code>img</code> element in your HTML but jQuery should remove it.')" "assert(editor.match(/id='target4/g), 'Only use jQuery to add these classes to the element.')"
], ],
"challengeSeed": [ "challengeSeed": [
"fccss", "fccss",