76
rated 0 times
[
80]
[
4]
/ answers: 1 / hits: 149008
/ 11 Years ago, tue, march 12, 2013, 12:00:00
Following is my code snippet. I want to validate my dropdown using angular.
<td align=left width=52%>
<span class=requiredSmall>*</span>
<select class=Sitedropdown style=width: 220px;
ng-model=selectedSpecimen().serviceID
ng-options=service.ServiceID as service.ServiceName for service in services>
<option value= ng-selected=selected>Select Service</option>
</select>
</td>
Valid means:
Valid values can be anything but Select Service, it is my default value. Like other ASP.net Require field validator DefaultValue=0 for dropdown, so here My dropdown will be bound from the services and I want to select all other values except Select Service.
More From » asp.net