We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
This is not a bug.
In your code you are targeting the PARENT of the div with the ID left-well. Thus, you are targeting the div with the class col-xs-6.
Since you're targeting the left-well ID using the parent() selector, you'd want to target one of the children within that ID.
For example, the code:
$("#target1").parent().css("background-color", "red")
should (and does) work. Hope this helps.
Sorry, something went wrong.
thanks for the help
Correct Answer is,
$("#left-well").css("background-color","red"); $('#target1').parent().css('background-color','red');
Successfully merging a pull request may close this issue.
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.
The text was updated successfully, but these errors were encountered: