开发者

jQuery getting value of selected radio option

I have a form with several fields, and I use the following to get the value of the fields

$("input[na开发者_开发技巧me='numbers']").val()

However this doesn't work for radio options, it just comes back with undefined. How should I get the value of a selected radio option?


The :input selector can be used to input elements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜