Guest User

Untitled

a guest
May 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <input id="testId" ng-model-options="{updateOn: 'blur'}"
  2. class="form-control ng-scope ng-valid-maxlength ng-valid-gcms-text
  3. ng-touched ng-dirty ng-valid-parse ng-invalid ng-invalid-required"
  4. name="testName" type="text" ng-model="testName"
  5. maxlength="100" required="" aria-required="true"
  6. aria-invalid="true"
  7. aria-describedby="question-error-description-testId">
  8.  
  9. document.getElementById("testid").value = "some value"
  10. $("#testId").trigger("input");
  11.  
  12. <div ng-app="myApp" ng-controller="myCtrl">
  13.  
  14. <input id="testId" ng-value="myVar" ng-model-options="{updateOn: 'blur'}"
  15. class="form-control ng-scope ng-valid-maxlength ng-valid-gcms-text
  16. ng-touched ng-dirty ng-valid-parse ng-invalid ng-invalid-required"
  17. name="testName" type="text" ng-model="testName"
  18. maxlength="100" required="" aria-required="true"
  19. aria-invalid="true"
  20. aria-describedby="question-error-description-testId">
  21.  
  22. </div>
  23. <script>
  24. var app = angular.module('myApp', []);
  25. app.controller('myCtrl', function($scope) {
  26. $scope.myVar = "some value";
  27. });
  28. </script>
Add Comment
Please, Sign In to add comment