JSFiddle - React, Tailwind, and code Playground
HTML
<input type="radio" class="win" id="50" value="1" name="match1" />
<input type="radio" class="cover" id="50" value="2" name="match1" />
<input type="radio" class="win" id="51" value="1" name="match2" />
<input type="radio" class="cover" id="51" value="2" name="match2" />
<input type="radio" class="win" id="52" value="1" name="match3" />
<input type="radio" class="cover" id="52" value="2" name="match3" />
<button id="getChecked"></button>
JavaScript
function alertChecked() {
for (var i = 0, x = 4; i < x; i++) {
if ( $('input[name=match' + i + ']').is(':checked')) {
alert("Checked");
}
}
}
$('#getChecked').click(function() {
alertChecked();
});