Possible Duplicate:
jquery on vs click methods
I have noticed some are saying to use "on" in the latest jQuery, but what is the difference and is it true I should use it?
$("#dataTable td").on("click", function(event){
alert($(this).text());
});
$("#dataTable td").click(function(event){
alert($(this).text());
});