问题:
I have two radio buttons and want to post the value of the selected one. 我有两个单选按钮,想要发布所选一个的值。 How can I get the value with jQuery? 如何使用jQuery获得价值?
I can get all of them like this: 我可以像这样得到所有这些:
$("form :radio")
How do I know which one is selected? 我怎么知道选择了哪一个?
解决方案:
参考一: https://stackoom.com/question/2V8Z/我怎么知道通过jQuery选择了哪个单选按钮参考二: https://oldbug.net/q/2V8Z/How-can-I-know-which-radio-button-is-selected-via-jQuery
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4462140