title: AngularJS validation error for input with brackets
body: <p>When using AngularJS form validation it work smoothly except the following part when validating select input with brackets</p>
  
  <pre><code>&lt;div class="form-group" ng-class="{'has-error': editDorm.classId.$invalid}"&gt;
        &lt;div class="col-sm-10"&gt;
          &lt;select class="form-control" ng-model="form.classId" name="classId[]" multiple required&gt;
            &lt;option ng-repeat="class in classes" value="{{class.id}}"&gt;{{class.className}}&lt;/option&gt;
          &lt;/select&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Appreciate your help.
  thanks</p>