Hy guys i have found one proble in my application which is related to angularjs.
I have two textbox , if i enter in first textbox the second textbox will be fill automatically.
which i done with simple javascript.
In second textbox i used angularjs validation.
All are required fill.
Once all the fields fill the form will be validate and button will get enable.
But i dnt want to enter in second textbox i will enter in first textbox only and it will fill the second textbox . since second textbox have value now so it should validate the form.
Im not getting ....
This the complete code just copy paste you will get to know whats the problem.
Fill only first textbox.
- "utf-8" />
AngularJS Validation - "stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
- "validationApp" ng-controller="mainController">class="container">class="row">class="col-sm-6">
- ng-submit="submitForm()" novalidate>
- "text" name="name1" id="txtname1" ng-model="user.name1" class="form-control" onkeyup="sync()" required>
class="form-group" ng-class="{ 'has-error' : userForm.name2.$invalid && !userForm.name2.$pristine,'has-success' : userForm.name2.$valid && !userForm.name2.$pristine }">- "text" name="name2" class="form-control" ng-model="user.name2" required id="txtname2">
"userForm.name2.$invalid && !userForm.name2.$pristine"
class="help-block">You name is required.- class="btn btn-primary" ng-disabled="userForm.$invalid">Submit
If we enter value in the first textbox then that value will be copy in the second textbox.
That time form shuould valid and button should enable as well as in the second textbox green broder should come.(Angularjs Validation)
If you have any solution please let me know....
Thank you

Faisal PathanPosted Feb 12, 2019, 12:17 AM
Faisal PathanPosted Feb 12, 2019, 12:43 AM
Anilananda ChakraborttyPosted Feb 12, 2019, 12:41 AM