JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<form action="" class="js-form js-cme-form" method="POST" novalidate="novalidate" style="display: block; width: 100%;">
<div class="c-cme-test js-form-step" data-step="1">
<div class="c-card c-card--large c-card--grey-border u-mb-4">
<span class="c-card__count c-cme-test__count">
<span class="c-card__count-text">
<span class="is-active">Question 1</span>/3 </span>
</span>
<h6 class="h6 u-text-grey o-overlay__question">Which of the following are considered to contribute to clinical inertia, and represent barriers to achieving glycemic targets?</h6>
</div>
<!-- /.c-card -->
<div class="c-cme-test__answers-wrap js-cme-answers-wrap" style="display: none;">
<div class="o-field o-field--cme js-cme-question-choice o-field--none is-active" data-answer="correct">
<label class="o-field o-field--small o-toggle o-toggle--radio o-toggle--radio-quiz o-toggle--large u-mb-0">
<span class="o-toggle__label u-text-grey js-cme-answer-text">a</span>
<input type="radio" name="js-cme-question-1" value="a" class="o-toggle__field u-hide" aria-invalid="false">
<span class="o-toggle__box o-toggle__box--radio"></span>
</label>
</div>
<!-- /.o-field -->
<div class="o-field o-field--cme js-cme-question-choice o-field--none" data-answer="incorrect">
<label class="o-field o-field--small o-toggle o-toggle--radio o-toggle--radio-quiz o-toggle--large u-mb-0">
<span class="o-toggle__label u-text-grey js-cme-answer-text">b</span>
<input type="radio" name="js-cme-question-1" value="b" class="o-toggle__field u-hide" aria-invalid="false">
<span class="o-toggle__box o-toggle__box--radio"></span>
</label>
</div>
<!-- /.o-field -->
<div class="o-field o-field--cme js-cme-question-choice o-field--none" data-answer="incorrect">
...
JavaScript
$(document).ready(function () {
$(".c-cme-test__answers-wrap input[type=radio]").change(function () {
var answer = $(this).closest('.js-cme-question-choice').data('answer');
alert(answer);
});
});