I've got a dropdown list for users to select whether a task is completed or not. I want their changes to update the status on the database, without them having to click a submit button every time they make a change. Is this possible?
Basically, all tasks are marked as not complete by default, so when the user clicks the dropdown and changes it to complete, I want this to change on the database without them having to click a submit button.
Any help anyone could give would be great, thanks!
This is the code I have:
<%= form_for task do %>
<td><%= select :task, :complete, [ ["Yes",2], ["Partly",1], ["No",0]], { :action => "update" } %></td>
<% end %>