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
The best way to explain this simple topic is by giving simple example and reference link:-
In the following example we have two radio buttons. If the user selects any radio button, we will display the selected radio button value in a alert box.
Html:
jquery:-
$(document).ready(function(){
$('#Demo input').on('change', function() {
alert($('input[name="Gender"]:checked', '#Demo').val());
});
});