Using javascript to accomplish the ajax for will_paginate

To use the ajax replacing some html element’s content for my
pagination,I user some js codes like following ,but pagination still
work like a normal call,not ajax.
How do i manage?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs