Help me fix this code, It doesn't work

Help me fix this code, It doesn't work
0

#1

So I am currently learning JQuery and am almost close to finishing it.
But I came over a hurdle and it’s just blazing me off. :frowning:

Here’s my code, it never works
$(document).ready(function() {
$("#target1").css(“color”, “red”);
$("#target1").prop(“disabled”, true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css(“background-color”, “red”);
$("#right-well").children().css(“color”, “orange”);
$(".well:nth-child(2)").addClass(“bounce”);
});


#2

you ask of people to fix your code and you didn’t even say what your assignment requires you to do, or at least name of assignment.


#3

Target a Specific Child of an Element Using jQuery


#4

your class should be call animated bounce
just like in example.


#5

I tryed that, all the other options seems to be fine,
the first task errors out


#6

it’s funny, if only you looked at your example on the left, and typed everything what’s there,
then just replaced with proper number (2), you wouldn’t have any problems.

so when your task says that you must target something with the target class why would you write well instead?


#7

o.O WTF im sooo silly


#8

$(".target:nth-child(2)").addClass(“animated bounce”);
});