freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

targeting bug

Open impaler1 opened this issue 11 years ago • 1 comments

Challenge http://www.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. screen shot 2015-09-04 at 6 18 49 pm

impaler1 avatar Sep 05 '15 01:09 impaler1

@impaler1 thanks for posting this issue! Actually your code is incorrect because:

Use each of these jQuery selectors to target your button element with the class btn and the id target1. Use the addClass() jQuery function to give the element one new class for each selector: animated, shake, and btn-primary.

So the correct code looks like this:

$('.btn').addClass('animated');
$('button').addClass('shake');
$('#target1').addClass('btn-primary');

or another five combinations.


Please review the Guidelines for Contributing, thank you!.


bugron avatar Sep 05 '15 05:09 bugron