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 trialjoseph arias
9,269 PointsQuick Question on the Class tags
Hey guys, quick question.. Soo I understand the concept of the video but I don't understand how she gets the class ('.close') without it being written on the html. Am I missing something?
1 Answer
Philip Gales
15,193 PointsAt 1:36 I can see the '.close' class on line 21, above her use of the tag in the JavaScript file. You can add HTML in .js files, and that is how she was able to use it.
joseph arias
9,269 Pointsjoseph arias
9,269 PointsAhh I forgot that we assemble some html thru jquery. I was trying to find it on post.html and index.html files. thanks for replying. I appreciate it.
Philip Gales
15,193 PointsPhilip Gales
15,193 PointsHaha, happens to the best. You're welcome.