javascript - Validating input using Angularjs on IE8 -
i have form (made using divs) gets displayed when select option using dropdown menu. using ng-options dropdown selections. issue need support ie8. know ie8 not support html5, , can not use 'required' tag. thus, trying use "ng-required" option form validation not seem work. have looked @ jquery validator have many forms , each have different criteria. example, have form requires state/country in input box required particular option. however, same field optional other option. me, writing validation each not right approach since trying leverage angularjs. please help. example, 1 of field is:
<div style="float:left; width:290px;margin-bottom: 8px;"> <div style="float:left; margin-right:8px; width: 113px; text-align: right;"> (*)document number: </div> <div style="float:left; margin-right:8px;width: 160px;"> <input type="text" ng-model="customerdata.docnmbr" placeholder=" document number" class="ng-pristine ng-valid" ng-required> </div> </div> and submit button is:
<button type="submit" id="submitbutton" ng-disabled="userform.$invalid" class="btn btn-primary">register</button>
what have use library modernizr. main objective of library standardize somehow old browser ie8 of new html5 features. if want learn more article:
http://www.adobe.com/devnet/dreamweaver/articles/using-modernizr.html
Comments
Post a Comment