我得到了这个代码
<?php foreach($this->question as $question): ?>
<div class="question">
<?php echo $question['question'] ?> </div>
<?php if($this->activeEdition["id"]!=20) { ?>
<div class="answers">
<?php
$i = 1;
foreach($question['answers'] as $answer):
?>
<input type="radio" name="question[<?php echo $question['id'] ?>]" value="<?php echo $answer['id'] ?>" id="<?php echo
$answer['id']
?>" class="radio_answer radio_answer_<?php echo $i; ?>" >
<label for="<?php echo $answer['id'] ?>"><?php echo $answer['answer'] ?></label>
<?php
if(count($question['answers']) > 3){
echo '<br/>';
}
?>
<?php
$i++;
endforeach;
?>
</div>
如果在每个问题中都选中一个单选按钮,如何在 javascript 中以简单和最简单的方式检查?