javascript: Jquery code does not work after paging SharePoint ListView

I wrote the custom onclick event for a class in jquery, I have attached the script with the JS link of the listview web element. There is a default page in the websiteviewviewview. On the first page, the click event works perfectly but after navigating to the other pages the click event is not triggering. Any help would be useful. Thanks in advance. The sample code is shown below.

$ (document) .ready (function () {
$ (& # 39 ;. ms-listlink & # 39;). bind (& # 39; onclick & # 39 ;, function (e) {
var documentURL = $ (this) .attr (& # 39; href & # 39;);
var url = "https://Test.sharepoint.com/sites/TestSite/SiteAssets/TestPage.aspx?URL=" + documentURL;
$ (this) .attr (& # 39; href & # 39 ;, url);
});  

});