I have a radio button that looks like this:
<input class="MCQRadio" id="MCQ" mcq-id="1" name="MCQ" question-id="1" type="radio" value="MCQ" /> MCQ
<><>>
When i click the radiobutton, and several radio buttons have the same class name, how do i retrive the question-id value and mcq-id value from the specific button? Preferably with jQuery.
我已经设立了这样一个点击手:
$(document).ready(function () {
$( .MCQRadio ).click(function () {