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
Simplest way to get the selected radio button's value is as follows:
$("input[name='optradio']:checked").val();
No space should be used in between selector.