Are you loading the paginations i mean the number 1234 also after along with the data? If yes then you will need to rebind the click event for the page numbers, Google for jquery rebind events.
Check your condition in Chrome and other browsers and usee some other way around to make the functionality work.
It will depend on what values you are getting in $errors variable, is it a single string error or an array of errors or an error code.
In that way you can check the $error variable value first and then apply the condition.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.