Validate Radio Button AngularJS

后端 未结 4 1886
Happy的楠姐
Happy的楠姐 2020-12-04 20:32

This seems like it should be fairly easy, but I\'m not finding the answer. I have a form where I need to validate that a selection has been made from a radio group. I trie

4条回答
  •  鱼传尺愫
    2020-12-04 21:32

    I think what you need is to add a name for the radio group, for a radio input need a name to determine which it belongs to, the link below works validation without ng-required(the accepted answer)

      Red 
    Green
    Blue

    http://plnkr.co/edit/LdgAywfC6mu7gL9SxPpC?p=preview

提交回复
热议问题