$("#new_download").html('<%= escape_javascript(render :partial => "form") %>'); $("#admin_new_download").parent().hide();