Per the standards, I'm trying to use jQuery's on() method as much as possible for my event handlers. Instead of hover(), I tried using on('hover') but it does not work. What can I do to make this bit of code work with on() instead of hover()? Is there a list of events I can see that work with the on() method?
$(document).ready(function(){
$('#navigation li').on('hover', function(){
$(this).animate({
paddingLeft: '+=15px'
}, 200);
}, function(){
$(this).animate({
paddingLeft: '-=15px'
}, 200);
});
});