Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waypoint: Target the Parent of an Element Using jQuery #2337

Closed
marcoshuet opened this issue Aug 20, 2015 · 2 comments
Closed

Waypoint: Target the Parent of an Element Using jQuery #2337

marcoshuet opened this issue Aug 20, 2015 · 2 comments

Comments

@marcoshuet
Copy link

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

"Your left-well element should have a red background." is not completed until you make it with #target1 as well.

@denmch
Copy link

denmch commented Aug 20, 2015

I don't believe this is a bug, but rather that the instructions could be clarified. The example code is a bit misleading, because it shows .parent() applied directly to the left well, which is probably confusing a lot of campers.

The goal here, however, is to use .parent() to change the style of the left well, and to do that you need to apply .parent() to one the left well's children. This is clear from the following part of the instructions:

Give the parent of the #target1 element background-color of red.

@bugron
Copy link
Contributor

bugron commented Aug 22, 2015

Dear camper, your issue is a duplicate:
#1934


Please review the Guidelines for Contributing, thank you!.


@denmch exactly! I think instructions need to be clarified maybe in this way.
Here's an example of how you would use the parent() function to set the #left-well element's parent element background color $("#left-well").parent().css("background-color", "blue").

@benschenker benschenker added confirmed first timers only Open for anyone doing contributions for first time. You do not need permission to work on these. labels Aug 26, 2015
@ghost ghost removed the first timers only Open for anyone doing contributions for first time. You do not need permission to work on these. label May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants