The previous and next buttons which were there under the section customers who bought this item also bought will be removed by using script without affecting the buttons in the other pages.


The script added in the above screenshot is used to remove those buttons from that page.
In the script, we have to give current page where unnecessary div elements to be removed in the url.indexof() and the div elements classes has to given under $(document).ready(function(){ by using $().css(‘display’,’none’);.

After that the elements will be removed from the current page without affecting in other pages.