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 trial

JavaScript Introduction to jQuery Events Using the on() Method

Teachers recommended source outdated? Using the on() Method in jQuery, event property srcElement

The teachers notes for this video recommends http://www.htmlgoodies.com/beyond/javascript/events-and-javascript-part-3-the-event-object.html which was (evidently) written about 5 years ago... The article starts off describing the srcElement event property which I can't find anywhere in Dev Tools. Has that property been replaced/superseded?

2 Answers

Steven Parker
Steven Parker
230,688 Points

That property has been superseded by the target property.

Here's a quote directly from the MDN Event page:

Event.srcElement
    A non-standard alias (from old versions of Microsoft Internet Explorer) for Event.target.

You might want to report this as a bug to Support.

Thank you Steven.