Event Selector Showdown : the jQuery Challenge

John posted an interesting 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. Comparing Behaviour + Prototype, Prototype 1.5.0, event:Selectors and […]

Share online:

John posted an interesting 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. Comparing Behaviour + Prototype, Prototype 1.5.0, event:Selectors and jQuery; the result is amazing :

Behaviour + Prototype

Prototype 1.5.0

event:Selectors

jQuery

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.