Friday, April 25, 2014

angularjs ng-disabled with multiple conditions


<input ng-disabled="serviceType != 'WKA' && serviceType !='MGMT'" type="text" ng-pattern="validateForInt.number.valid" ng-model="port" name="port" placeholder="Port Number" class="form-control input-sm" ng-required="serviceType == 'WKA' && serviceType == 'MGMT'"/>

1 comment: