I need to do something when I click on the grid pager
.
This is the HTML
where the pager is. The css
class is dxp-num
I have added this code in the document.ready
$(document).ready(function () {
$(".dxp-num").click(function () {
alert("The pager was clicked.");
});
});
I have tried to add the same code outside the document.ready.
the alert is showing only once in both examples. I need to enter on that click event every time I click on a page number.