var box = $('td[id=notes-<%= @meal.id %>]'); box.contents().hide(); box.append('<%= j render partial: 'meals/edit_notes_form' %>'); box.find('input[type=text]').focus();