question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exercise not validating

See original GitHub issue

Challenge http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The exercise seems broken:

Objectives:

  • The second element in each of your well elements should bounce.
  • You should use the :nth-child() function to modify these elements.
  • Only use jQuery to add these classes to the element.
<script>
  $(document).ready(function() {
    $(".well:nth-child(2)").addClass("animated bounce");
  });
</script>

<!-- You shouldn't need to modify code below this line -->
<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>
      </div>
    </div>
  </div>
</div>

I have also tried the below:

<script>
  $(document).ready(function() {
    $("#left-well:nth-child(2)").addClass("animated bounce");
    $("#right-well:nth-child(2)").addClass("animated bounce");
  });
</script>

Neither validates the first objective of the exercise.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
blemairecommented, Aug 22, 2015

Sorted thanks, there must be a space before the :.

0reactions
texas2010commented, May 21, 2017

@pd1309 Please use the HelpJavaScript chat room for getting challenge related help.

Happy Coding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input Validation Exercise Help - OutSystems
Hi. I believe its not the case. There are 2 input fields Date of Birth and Date of Death. I want a validation...
Read more >
5 Reasons You Aren't Seeing Results from Working Out - Precor
1. You Aren't Working Hard Enough. Just because you go to the gym regularly doesn't mean you're always getting a great workout.
Read more >
Signs you're doing an exercise wrong - Simple Solutions Fitness
1. You're not feeling it where you should be · 2. You're in Pain During or After an Exercise · 3. You're Not...
Read more >
8 Reasons Why You're Not Seeing Results From Working Out
Not seeing results from working out? Here are some of the common reasons why people find themselves making zero progress or even regressing....
Read more >
10 Reasons You Don't Exercise - Verywell Fit
If you don't regularly exercise and are hoping to change course, here are some potential reasons you may not be exercising.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found