# Retain content of a form text when jump to another page

**URL:** <https://www.ruby-forum.com/t/retain-content-of-a-form-text-when-jump-to-another-page/90262>\
**Category:** Rails\
**Created:** [March 27, 2007, 5:24am UTC](https://www.ruby-forum.com/t/retain-content-of-a-form-text-when-jump-to-another-page/90262 "2007-03-27T05:24:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 27, 2007, 5:24am UTC](https://www.ruby-forum.com/t/retain-content-of-a-form-text-when-jump-to-another-page/90262/1 "2007-03-27T05:24:39Z")

</div>

Dear all,

I have a list (with pagination) and a form below it which contain a  
text area with a submit button. When the user enter text into the text  
area and navigate to another page (of pagination) without submit the  
form, I want to retain the content of the text area so that the  
content would be there in the new page. What should I do to get this  
functionality? I guess I should attach a javascript into the  
navigation link to get the content of the text are to put into params  
or something, but I don’t know how to do.

Thanks a lot,

- Chuong
