Sujeet Raman

Sujeet Raman

  • 862
  • 927
  • 353.8k

how to validate phone number and positive intiger value

Mar 15 2016 11:55 AM
 
i am trying to validate phone number and +ve intiger value below code is not working for me.pls help.we should able to type specific number phne number and +value.how can i validate pls pls help 
 
 
 
 
 
 
 
 
<td class="tal fntm fntn Editable leftcol" role="gridcell" data-role="editable" style="width: 10%;">
<input type="text" ng-required="requireTel" ng-pattern="phoneNumberPattern" style="width:100%;height:100%" ng-model=data.PhoneNumber class="tal configtext fntn Editable">
</td>
<td ng-if="result.IsEditable=='Y'" class="tal fntm fntn leftcol Editable" style="width: 10%;">
<input type="text" style="height:100%;width:100%" ng-model=result.PhoneNumber
ng-required="requireTel" ng-pattern="phoneNumberPattern"
class="tal configtext fntn Editable">
</td>

Answers (4)