angularjs radio validation bootstrap-switch -
i'm trying have radio input styled bootstrap-switch using angular-bootstrap-switch have set input required form valid when radio checked. using indeterminate feature when form loads - expecting input required until user selects either yes or no.
any thoughts? - plunker below
<ng-form name="testform" class="form-horiztonal"> <input bs-switch type="radio" name="radio_1" ng-model="rac.tempanswer[1]" switch-on-text="yes" switch-off-text="no" ng-true-value="'yes'" ng-false-value="'no'" required/> <p class="help-block" ng-show="testform.radio_1.$invalid">answer required</p> </ng-form>
Comments
Post a Comment