I have a following problem with select in my AngularJS application. I have set required attribute but it doesn't work on select tag. Doesn't trigger native validation. Here is my html code:
<div ng-app="app">
<div ng-controller="testCtrl">
<form ng-submit="selectChanged()">
<select ng-model="first" required="required">
<option>choose</option>
<option value="2">2</option>
</select>
<input type="submit" value="test"/>
</form>
</div>
</div>
Here is my controller:
angular.module('app', []).controller('testCtrl', function ($scope) {
$scope.selectChanged = function () {
};
});
Here is working jsfiddle: http://jsfiddle.net/zono/k3b5J/3/
Best regards.