The first is an abbreviation from the second. The second, actually incorrect, clickshould have been specified. In addition, in the second you have an additional advantage that can be associated with the same function with several events, each of which is separated by a space. For instance.
$(".anything").bind("click keypress blur", function() {
});
source
share