$(document).on("click", "[data-ajax]", function (event) { ajax(this.dataset.link,this.dateset.id); });