Sivakumar

Sivakumar

  • NA
  • 551
  • 218.5k

Validation is not working correctly

Jan 9 2016 3:05 AM
Hi,
 
 Validations are not working correctly.
 
This is my html code :
 
<div class="form-group col-md-3">
<span>No. of Positions *</span>
<input type="number" min="1"id="vacancies" class="form-control" name="position" placeholder="9" data-ng-model="Job.Position" required >
<span ng-show="(formaddjob.position.$dirty || submitted) && (formaddjob.position.$error.required || !formaddjob.position.$valid)">
<span class="error" ng-show="formaddjob.position.$error.required">
Vacancies Required!
</span>
<span class="error" ng-show="formaddjob.position.$error.number || !formaddjob.position.$valid">
Not valid number!
</span>
</span>
</div> 
 
 
Please give me help

Answers (1)