Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination - page number is not highlighting

 
Gobenath Msr
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have pagination in my jsp. Each page has to display 25 records. The page number is not highlighting. The user doesn't know which page they are in. I tried jquery and regular javascript. Not working as expected. It is highlighting all the page. Here is my code. Please help me.

xxxxx.jsp
-----------


Jquery
-------


CSS
-----

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no reason to loop through the elements with an each to remove the class. I have a feeling that you are adding the event handler before the paging elements are added to the page. Try this.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic