RedsDevils
RedsDevils

Reputation: 1433

How to add desired Text to jQuery pagination plugin

I want to add custom text in front of jQuery pagination plugin

we got like following in JQuery pagination plugin

  |<    <  1/23   >  >|

I want to add text before it like following:

   Page: |<    <  1/23   >  >|

I want like second format. How can I get it? Anybody know how to get the "div" id in that control too?

Upvotes: 1

Views: 535

Answers (1)

Samuel Liew
Samuel Liew

Reputation: 79073

The script at http://plugins.jquery.com/project/jquery-pagination has been packed, so I went to download the unpacked version at http://rohitsengar.cueblocks.net/jquery-pagination-plugin/.

Scroll to the bottom of the script and look for:

$(".paginator").html(style);

and change it to:

$(".paginator").html('<span>Page: </span>' + style);

Upvotes: 1

Related Questions