I have a function
that fires when I click on item inside my jquery datatable item.
$('.table tbody').on( 'click', '.item', function (e) {
alert("clicked");
});
I have an item with the same class outside the datatable, that works with this function
:
$('.item').on( 'click', function (e) {
alert("clicked");
});
What is inside the function
is for both the same. Is there a way to combine these two functions into one?