Implement MooTools’ Elements.addEvent in jQuery
One thing that I’ve always disliked about the jQuery JavaScript framework is its syntax for adding event listeners to elements. The way to add a click event to an element using jQuery is: $(‘#myElement’).click(function() { //do work }); I love OOP so the above code tells me that a click is being triggered, not that … Continue reading Implement MooTools’ Elements.addEvent in jQuery
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed