javascript - Validate a form in AngularJS -


i working on angularjs form validation. below form input form

i have 3 variables toolid, timeremaining , maxqtyobj in javascript file , want validate form fields "tool id" , "time remaining" 2 variables i.e. field toold id should equal variable toolid & field time remaining should less variable timeremaining.

and show alert when user enter values qty fields greater value stored in maxqtyobj contains sx & qty. if user clicks on yes, proceed or else cancel process. please help.

i solved problem using ng-blur attribute. on ng-blur of elements defined function , set boolean values variables inside these function. if true proceed in ng-click of defined function.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -