This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Pagination - page number is not highlighting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Pagination - page number is not highlighting" Watch "Pagination - page number is not highlighting" New topic
Author

Pagination - page number is not highlighting

Gobenath Msr
Greenhorn

Joined: Mar 15, 2013
Posts: 4
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination - page number is not highlighting