Check the last and the first page and disable button next-previous buttons accordingly
问题 I've 2 pop-ups to display the user list & admin list which would display 10 results per page, which is working fine. I'm getting the page nos. from the java servlet in the JSON. Note: There are 2 parameters passed in the url - resType and pageNo. pageNo. returns 0, 10, 20 ...(multiples of 10). resType: checks what sort of result I want. You can ignore this part. So my url in the createTable function looks something like this instead - How do I disable the previous button, when it is the first