Event Selector Showdown
Simple Challenge: Find all the LI elements underneath two different elements (using their #ID as reference) and bind a click handler which changes the color of the LI’s text. Here is how you would do that in all of the popular event/selector libraries. Behaviour + Prototype Behaviour.register({ ‘#item li’: function(element) { Event.observe(element, ‘click’, function(event) { … Continue reading