# Rails, Jquery, Pagination & form submission

**URL:** <https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821>\
**Category:** Rails\
**Created:** [April 6, 2009, 11:32am UTC](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821 "2009-04-06T11:32:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![preethi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@preethi](https://www.ruby-forum.com/u/preethi)\
**Post date:** [April 6, 2009, 11:32am UTC](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821/1 "2009-04-06T11:32:12Z")

</div>

Hi,

I’m having a page in which i’m listing a list of profiles with  
pagination(done in Jquery).(see the attachment)

I’m having a delete option in my page which has to take all the checked  
rows i’m selecting(irrespective of in which page i’m submitting from)

The issue is that, when i’m doing delete, only the current page’s  
selected checkboxes are passed to the controller, whereas it has to pass  
the checked rows of all the pages.

Am i missing something?  
What is the solution for this.  
Any help is greatly appreciated.Thanks

---

<div class="post-metadata">

**Author:** ![preethi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@preethi](https://www.ruby-forum.com/u/preethi)\
**Post date:** [April 6, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821/2 "2009-04-06T13:22:12Z")

</div>

Preethi, you can set the attribute name to the check boxes as ids of the  
record, when you click on to the checkboxes and press delete, you can  
collect the ids and delete them!  
Regards  
Shree

On Mon, Apr 6, 2009 at 3:02 PM, Preethi S. \<

---

<div class="post-metadata">

**Author:** ![preethi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@preethi](https://www.ruby-forum.com/u/preethi)\
**Post date:** [April 6, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821/3 "2009-04-06T13:25:28Z")

</div>

Shree Jay wrote:

> Preethi, you can set the attribute name to the check boxes as ids of the  
> record, when you click on to the checkboxes and press delete, you can  
> collect the ids and delete them!  
> Regards  
> Shree
> 
> On Mon, Apr 6, 2009 at 3:02 PM, Preethi S. \<

Thanks Jay  
Yes, My checkboxes’s id is checked\_values[]  
but the thing is, i’m getting only the checked\_values[] of the current  
page but not the next or previos pages’ values which are also checked in  
pagination.  
How to solve this?
