$('#unchecked_<%= @payment_order.order_id %>').replaceWith('<%= j(render partial: 'index', locals: { payment_order: @payment_order }) %>') $('#checked_amount_<%= @payment.id %>').html(<%= @payment.checked_amount %>)