Ok this might be condemned as a dumb question but I have been doing a lot of JQuery coding over the last few weeks and want to know if there is any real difference between using 'on' for just using the event it's self, e.g. click or submit.
So example, I have been do this most of the time,
$('SECTOR-TAG-HER').on('click', function(event) {
//DO STUFF HERE
});
But is it better to just do,
$('SECTOR-TAG-HER').click(function(event) {
//DO STUFF HERE
});
I think it does not matter? But if one method is better than the other, I change to that method. Or does it not matter and is just based on the coder?
Thanks,