From a3337ac736bdcbd37213b569dbff0dfb295413a2 Mon Sep 17 00:00:00 2001 From: Ismailov_Rovshan Date: Fri, 5 May 2023 01:48:46 +0400 Subject: [PATCH] fix create --- .../Views/Home/Create.cshtml | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/RenovationWork/RenovationWorkClientApp/Views/Home/Create.cshtml b/RenovationWork/RenovationWorkClientApp/Views/Home/Create.cshtml index 20736a2..51665d9 100644 --- a/RenovationWork/RenovationWorkClientApp/Views/Home/Create.cshtml +++ b/RenovationWork/RenovationWorkClientApp/Views/Home/Create.cshtml @@ -8,7 +8,7 @@
Изделие:
- +
@@ -25,26 +25,28 @@
- + function check() { + var count = $('#count').val(); + var repair = $('#repair').val(); + if (count && repair) { + $.ajax({ + method: "POST", + url: "/Home/Calc", + data: { count: count, repair: repair }, + success: function (result) { + $("#sum").val(result); + } + }); + }; + } + +}