I am wanting to know what is the quickest way below to repeat or give this "function" below a name so that I can call it within another function in the same document -> runThisFunction();
Code:
$('body').on("click", ".manufacturer_details_link", function (e) {
e.preventDefault();
var self = $(this);
var id = self.data("id");
var url = $("#manufacturers_table").data("infourl");
var data_array = {
id : id
};
ajaxCall(url, data_array, "rhs_info");
});