Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNino Merdzanovic
Courses Plus Student 15,758 PointsNeed help with Framework Basics Challenge 4.
Give the img element on line 21 the data attribute that reveals the modal window once the image is clicked. Make sure that its value matches the modal window's ID.
I don't understand this one.. can somebody help me or explain me how to do this?
img class="rnd" id="reveal-modal" src="img/thumb_ribbit.jpg">
5 Answers
Mathieu Delporte
8,097 PointsHmm, going on the video, you need to use data-reveal-id="id goes here", using the correct ID of the modal window.
james white
78,399 PointsFor this Challenge:
Challenge Task 2 of 4
Give the img element on line 21 the data attribute that reveals the modal window once the image is clicked. Make sure that its value matches the modal window's ID.
I passed with:
<img class="rnd" src="img/thumb_ribbit.jpg" data-reveal-id="vidModal" data-reveal>
Mathieu Delporte
8,097 PointsTry this one:
img src="img/thumb_ribbit.jpg" class="rnd" id="reveal-modal" data-reveal>
Nino Merdzanovic
Courses Plus Student 15,758 PointsHi mate,
Not working still getting the same error.
Nino Merdzanovic
Courses Plus Student 15,758 PointsThanks mate, i have fixed it ID is vidModal.
Mathieu Delporte
8,097 PointsPerfect, good luck with the rest!
Nino Merdzanovic
Courses Plus Student 15,758 PointsNino Merdzanovic
Courses Plus Student 15,758 PointsI have place the ID data-reveal-id="id goes here".. but what is the ID?
Mathieu Delporte
8,097 PointsMathieu Delporte
8,097 PointsShould be vidModal, it's inside your video modal code.