$("#new_property_container").html('<%= escape_javascript(render template: "spree/admin/properties/new", formats: [:html], handlers: [:erb]) %>'); $("#new_property_link").parent().hide();