Using checkboxes and required with AngularJS

后端 未结 5 1645
独厮守ぢ
独厮守ぢ 2021-01-31 08:20

I\'ve tried to use the html5 required attribute for my group of checkboxes but I don\'t find a nice way to implement it with ng-form.

When a checkbox is che

5条回答
  •  無奈伤痛
    2021-01-31 09:01

    I just added a hidden input with ng-model that's the same as your ng-model for the radio button:

     
    {{option.DisplayName}}

提交回复
热议问题