JavaScript
Article
By Sam Deering

jQuery radio button group get value

By Sam Deering

Simple jQuery code snippet to get the chosen value from a radio button group.

$('input:radio[name=theme]:checked').val();

or when it is selected try:

--ADVERTISEMENT--

$('input:radio[name=theme]').click(function() {
var value = $(this).val();
});
Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.