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 trialMIHA W.LEE
PHP Development Techdegree Graduate 25,452 PointsAbout event.target from this course
I just watched tutorial from this course, I saw when they call the event target on UL variable, they set the event.target to checked. But the checkbox its not directly from the UL variable s child element. So, i just want to know the reason, why this happen?
Thank you so much and hope you guys can help me out.
1 Answer
<noob />
17,062 Pointse.target is targeting the button u presss on, so when u press on the checkbox u actually get a reference to this checkboz. you can try it by console.log(e.target)
MIHA W.LEE
PHP Development Techdegree Graduate 25,452 PointsMIHA W.LEE
PHP Development Techdegree Graduate 25,452 PointsSorry for the late reply, thank you so much!