No-Library (pure JS), HTML, CSS, JavaScript
this binds correctly using a separate binding function
this also works by using a inner closure
This will also work by using the index() function in jQuery
this example won't work as expected, all LI tags will be binded with the last value of i
this will work as expected with a separate function to bind the event