passing a text area value with link_to_remote

Hi
     I have a link_to_re,ote function as
<%= link_to_remote( "Select",
{:update=>"div_inside_transfer_reason#{div_no}",:url =>{ :controller =>
'popup', :action =>
'search_primary_group_ui',:flow_item=>flow_item.flow_item_id,
:sd_ticket=>sd_ticket, :div_no=>div_no}},:class => 'itillink1') %>

And the textarea as
<%= text_area_tag "transfer_reason", nil, :size => "50x1" %>

How can I pass the value of this text area with lnk_to_remote to action
search_primary_group_ui?I am not using any form in the file

Thanks in advance
Sijo

Hi
I have a link_to_re,ote function as
<%= link_to_remote( "Select",
{:update=>"div_inside_transfer_reason#{div_no}",:url =>{ :controller =>
'popup', :action =>
'search_primary_group_ui',:flow_item=>flow_item.flow_item_id,
:sd_ticket=>sd_ticket, :div_no=>div_no}},:class => 'itillink1') %>

And the textarea as
<%= text_area_tag "transfer_reason", nil, :size => "50x1" %>

How can I pass the value of this text area with lnk_to_remote to action
search_primary_group_ui?I am not using any form in the file

I've got this all written up here:
http://www.spacevatican.org/2008/5/17/with-or-without-you-link_to_remote-s-mysterious-parameter

Fred

Hi
     Thanks for your reply..It worked..
:with =>"$('transfer_reason').serialize()"
Could you please tell me what is serialize here?What is the use of it?

Sijo

I encourage you to experiment, but the short version is in the post I
linked to before: it creates an appropriate bit of query string for
the specified input element.

Fred