Challenge http://beta.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
In the description "button-primary" should be replaced with "btn-primary".
Use the addClass() jQuery function to give the element one new class for each selector: "animated", "shake", and "button-primary".
The first three validation also have some text issues (see screenshot):
duplicate of #1529
Happy Coding!
I am having an issue with the #target1 id since the site was updated. It won't let me pass when I write the code as it is above. The requirement "Your #target1 element should have the classes animated‚ shake and btn-primary." goes unchecked. Any ideas?
Same issue. I suspect there might be a problem with the test, have to go back and look though, I just kept moving after the error.
The challenge seems to be contradicting itself. It asks you to add one each class using the different selectors but also asks you to have #target1 id have all 3. Can't seem to get all checkmarks no matter how I go about it.
Try using "button-primary" instead. I read somewhere that the test code was
searching for "button" and not ".btn" Not sure if or when it was fixed.
On Tue, Aug 18, 2015, 11:12 PM Daniel [email protected] wrote:
[image: image]
https://cloud.githubusercontent.com/assets/13267128/9347947/3d05d120-45e5-11e5-865f-9866cd96136f.pngThe challenge seems to be contradicting itself. It asks you to add one
each class using the different selectors but also asks you to have #target1
id have all 3. Can't seem to get all checkmarks no matter how I go about it.—
Reply to this email directly or view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1553#issuecomment-132429843
.
I have run into the same problem here. I would attach a screenshot, but now I can't connect to the site. I tried the suggestion of using the "button" over "btn" even though it was fixed, and still didn't get my #target1 checked green. I was going to head to the next lesson, see what code is there, and try and reproduce it back into this lesson. But I can't connect for whatever reason at the moment.
GOT IT!!! They missed a space between the first two words (animated and shake) Here is a screen shot. get your check and keep on trucking!!
I think they have corrected the error, I just tried "animatedshake" (with and without the space in between) and it accepted it.
I am having issues with them test as well.
Try separating your classes for target1 with commas. This worked for me:
$("#target1").addClass("animated, shake, btn-primary");
here is what worked for me and what didn't work also...
You already target your #target1 by type button and class .btn , you don't have to write all to class of #target1 - just write btn-primary for it but as far as I see you have problems for punctutation. Use " not ' . That will solve your problem. Here is the code;
$("button") .addClass("animated");
$(".btn") .addClass("shake");
$("#target1") .addClass("btn-primary");
Thaks @tolgazafer74
it works
@tolgazafer74 - your suggestion worked for me as well, but it seems utterly inconsistent with the instructions.
worked for me as well.
deeeeeeeeeeeeeeeeeeeaaaaaammmm.
Most helpful comment
You already target your #target1 by type button and class .btn , you don't have to write all to class of #target1 - just write btn-primary for it but as far as I see you have problems for punctutation. Use " not ' . That will solve your problem. Here is the code;
$("button") .addClass("animated");
$(".btn") .addClass("shake");
$("#target1") .addClass("btn-primary");