Welcome Guest, Not a member yet? Register   Sign In
Pagination Links with Javascript


the Pagination Library works just fine on my site but i would really need to add onclick links to each pagination link and change href to [removed]void(0). Currently it looks like CI cant do this .Anyone has an idea how to accomplish this with CI ?

CodeIgniter produces this link:
<a href="/page/index/60">2</a>

and i want:
a href="javasccript:void(0);" onclick="function('/page/index/60')">  2 </a>


Hi Milaan,

You can extend the Pagination library
http://ellislab.com/codeigniter/user-gui...aries.html - scroll down to 'Extending Native Libraries'

Alternatively you could use something like jQuery to sniff out the pagination links and change them as required

Hope that helps

Go to this link

Really help you and give u something more what you want

Theme © iAndrew 2016 - Forum software by © MyBB