The problem statement is simple. I need to see if user has selected a radio button from a radio group. Every radio button in the group share same id.
The problem is
1 2 3
This will return, checked radio button value.
if($("input[type='radio'].radioBtnClass").is(':checked')) { var card_type = $("input[type='radio'].radioBtnClass:checked").val(); alert(card_type); }