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.
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”);
});
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.
Target a Specific Child of an Element Using jQuery
your class should be call animated bounce
just like in example.
I tryed that, all the other options seems to be fine,
the first task errors out
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?
$(".target:nth-child(2)").addClass(“animated bounce”);
});