From 9be1c91751d1de1d3c0c5b3d4d011223b4103b35 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Thu, 22 Jun 2023 17:34:26 +0300 Subject: [PATCH] 0.0.4 validation form --- static/js/header.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/header.js b/static/js/header.js index 0b64a2a..d3fb05c 100644 --- a/static/js/header.js +++ b/static/js/header.js @@ -14,8 +14,11 @@ function SendRegistrationForm(el){ // enctype: 'json', data: formData, success: function(data){ - console.log(JSON.stringify(data)) + // location.href = '/' + }, + error: function (data, exception){ + document.querySelector(".registration").innerHTML = data.html } }); }