Richd.nl

a collection of front-end idea's, tutorials and snippets

Javascript

Plain JavaScript event delegation

Event delegation is a powerful concept of event handling. If you are using jQuery, you might know it as jQuery.on(). Since I don’t use jQuery anymore, I had to write a similar function myself. If you are wondering how the code looks like, read on.

Source: Plain JavaScript event delegation

 

Comments are Closed

Theme by Anders Norén