how to get radio_button's value in link_to_remote

My Code is here

<% for category in @categories %> <% end %>
<%= radio_button 'category', 'id', [category.id ](http://category.id) %><%= h [category.name](http://category.name) %>

<%= link_to_remote 'Edit', :update => 'category',
:url => { :action => 'edit', :id => category[id]} %>

I don’t get the radio_button’s value, how can I get radio_button’s value in link_to_remote?


http://sourceforge.net/projects/mycodeline/

There is still a problem. I inspect the DOM, that is

<tr>
    <td width=
"10%"><input id="category_id_1" name=
"category[id]" value="1" type="radio">root</
>

</tr>

  <tr>
    <td
 width="10%"><input id="category_id_10"
name="category[id]" value="10" type=
"radio">root2</td>
  </tr>

  <tr>
    <td
 width="10%"><input id="category_id_11"
name="category[id]" value="11" type=
"radio">root3</td>
  </tr>

<tr>
    <
td width="10%"><input id="category_id_13" name="category[id]" value="13"
type="radio">root4</td>
  </tr>

as you can see, I can’t use $() to get the radio value because the id is dynamic created