阅读背景:

在使用angularjs提交表单时,如何获取已选中单选按钮的值?

来源:互联网 

I have a few forms. Each form have a few possible radio buttons and a submit button. Only one radio button can be checked (using the same name attribute for each radio). How can I get the checked radio button's value when the form is submitted, using angularjs? @blesh advised to use the same ng-model for each input, but note that the problem is that the input tags are generated using ng-repeat, and this is where the problem starts. I need, of course, naturally, only one button for a bunch of inputs. It is well described in the following plunker, after playing with @blesh 's Answer: I have a few forms. Each form have a few possib




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: