diff --git a/app/Views/notifications_form.php b/app/Views/notifications_form.php index 0abcd631..6a441740 100644 --- a/app/Views/notifications_form.php +++ b/app/Views/notifications_form.php @@ -43,7 +43,7 @@ - + getFlashdata('error')) : ?> - + @@ -122,7 +122,7 @@
-
@@ -187,7 +187,7 @@
-
@@ -293,10 +293,10 @@ form.reportValidity(); // Display validation error messages event.preventDefault(); // Prevent form submission if it's not valid - $('#submitBtn').prop('disabled', false); + $('#submitBtn1').prop('disabled', false); } else { - $('#submitBtn').prop('disabled', true); + $('#submitBtn1').prop('disabled', true); } }); document.getElementById('myForm2').addEventListener('submit', function(event) { @@ -315,14 +315,14 @@ // alert("if-if"); form.reportValidity(); // Display validation error messages event.preventDefault(); // Prevent form submission if it's not valid - $('#submitBtn').prop('disabled', false); + $('#submitBtn2').prop('disabled', false); } else { // alert("if-else"); - $('#submitBtn').prop('disabled', true); + $('#submitBtn2').prop('disabled', true); } }else{ // alert("else"); - $('#submitBtn').prop('disabled', true); + $('#submitBtn2').prop('disabled', true); } });