Can Anybody tell me what will be the difference between these two script,Am not a javascript/jquery expert.
$(document).on("click", "a", function () {
i = $(this).data("value");
alert(i)
})
$("a").click(function () {
i = $(this).data("value");
alert(i)
});