onChange => remote_function - Not able to get current id

Devi Rv
2009-05-25T05:16:13Z

Hi,

Below is the code I am using to display drop down. This drop down is for
displaying categories.

<% form_for :category do |form| %>
  <%= form.collection_select(:id,@categories, :id,
    :category_name, {},
    {:onChange =>
remote_function(:url=>{:action=>''say_hello'',
        :with => "''id=''+value"},
        :update=>''mydiv'')}
       )  %>
<% end %>

I want to get the ''current category id'' during onchange. Using
:with =>
"''id=''+value" I am not able to get it.


Plaese anyone suggest
--
Posted via http://www.ruby-forum.com/.