Topic: How to add inline editing in table with jQuery?

What is the best approach to add inline editing in a table with jQuery?

What is the best approach to add inline editing in a table with jQuery?

My table looks like this

<% @activities.each do |activity| %>
    <tr>
      <td class="date"><%= l activity.date, :format => :short %></td>
      <td class="actions"><%= link_to 'Edit', edit_project_activity_path(@project, activity), :remote => true %></td>
    </tr>
    <% end %>

What should go in edit.js.erb to edit table row?
Thanks.