Get Value of Radio button group
Your quotes only need to surround the value part of the attribute-equals selector, [attr='val']
, like this:
$('a#check_var').click(function() { alert($("input:radio[name='r']:checked").val()+ ' '+ $("input:radio[name='s']:checked").val());});