From dee1f7479d0e7ddfa3fb33a342a39b4f28d7f13a Mon Sep 17 00:00:00 2001 From: Palak Handa Date: Wed, 12 Sep 2018 13:12:21 +0530 Subject: [PATCH] validation use --- pages/registration.html | 22 +++++++++++----------- script.js | 13 +++++++++++++ 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/pages/registration.html b/pages/registration.html index e9bbe58..2823dff 100644 --- a/pages/registration.html +++ b/pages/registration.html @@ -26,17 +26,9 @@
email
- - - -
-
- phone -
- - - + + +
@@ -55,6 +47,14 @@
+
+
+ phone +
+ + + +
perm_identity diff --git a/script.js b/script.js index cf60c24..77d01a5 100644 --- a/script.js +++ b/script.js @@ -325,6 +325,19 @@ } }; + $scope.removeNoError = function() { + $('#invalidNumber').css('display', 'none'); + $('#alreadyExist').css('display', 'none'); + }; + + $scope.numbercheck = function(val) { + if (val == undefined) { + $('#invalidNumber').css('display', 'block'); + } else { + $('#alreadyExist').css('display', 'block'); + } + }; + // $scope.$on('city', function (event, value) { $scope.data.city = localStorage.getItem("city"); console.log("HERE===",$scope.data.city ); -- 2.0.0