Displaying 1 result from an estimated 1 matches for "selected_box".
2007 May 25
3
check box value in array
...I have a group of check box in rails page.
check box Code as below:
<% for count in @total_cellno %>
<input name="checkbox" type="checkbox" value="<%= count %>" />
<% end %>
I want to receive the selected value in my controller model.
@selected_box << params["checkbox"]
I guess that it provides values in a array.
But @selected_box contains only one selected value.
How can i capture all checked value in a array?
Any idea?
Please help me...
Amin
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-...