- id = dom_id(@field) html = $.parseHTML('#{j render(partial: "admin/fields/form")}') $('##{id}').find('.edit_field').replaceWith( html )