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.
精彩评论