Is it possible to run jQuery on server side?

Use PhantomJS for interacting with HTML pages on other services. There are libraries for PHP like this.

CasperJS is a library built on top of PhantomJS that allows to automate some common testing / scripting tasks.

If you don't need to interact with remote pages but want to extract data from HTML using jQuery selectors, use Cheerio.


JavaScript can, in fact, be run on the server side.

node.js

Your solution here, though, would be to use AJAX to call a PHP script for pagination, as server side javascript doesn't make much sense for the issue.