target3
элемент button
с target3
с помощью селектора $("#target3")
. Обратите внимание, что, как и в объявлениях CSS, вы вводите #
перед именем id. Затем используйте .addClass()
jQuery для добавления классов animated
и fadeOut
. Вот как вы делаете элемент button
с id target6
исчезающим: $("#target6").addClass("animated fadeOut")
.
button
element with the id
of target3
and use the jQuery addClass()
function to give it the class of animated
.
testString: assert($("#target3").hasClass("animated"));
- text: Target the element with the id target3
and use the jQuery addClass()
function to give it the class fadeOut
.
testString: assert(($("#target3").hasClass("fadeOut") || $("#target3").hasClass("fadeout")) && code.match(/\$\(\s*.#target3.\s*\)/g));
- text: Only use jQuery to add these classes to the element.
testString: assert(!code.match(/class.*animated/g));
```