#javascript #node.js #express #ejs
#javascript #node.js #выразить #ejs
Вопрос:
Я пытаюсь создать систему mcq. это работало, но последние пару дней переключатели не работают <% для(вопрос о ContestQuestionSet) {%>
<tr class="table-warning ">
<th><%=i%>. <%- question.question.replace(/rn/g, '<br/>')%></th>
</tr>
<tr class="table-success">
<th><span class="bd-highlight mr-2">A)</span><input class="mr-2" type="radio" name="answer[<%=question.id%>]" value="A"><%=question.option1%></th>
</tr>
<tr class="table-success">
<th><span class="bd-highlight mr-2">B)</span><input class="mr-2" type="radio" name="answer[<%=question.id%>]" value="B"><%=question.option2%></th>
</tr>
<tr class="table-success">
<th><span class="bd-highlight mr-2">C)</span><input class="mr-2" type="radio" name="answer[<%=question.id%>]" value="C"><%=question.option3%></th>
</tr>
<tr class="table-success ">
<th><span class="bd-highlight mr-2">D)</span><input class="mr-2" type="radio" name="answer[<%=question.id%>]" value="D"><%=question.option4%></th>
</tr>
<tr class="table-primary ">
<th><span class="bd-highlight mr-2">E)</span><input class="mr-2" type="radio" name="answer[<%=question.id%>]" value="E" checked>Avoid this question</th>
</tr>
<input type="hidden" name="questionId[]" value="<%=question.id%>" >
</table>
<%i ; }%>
<%}%>
Комментарии:
1. Пожалуйста, поделитесь подробностями о том, что вы подразумеваете под «не работает». Вы получаете ошибки или вообще не получаете?
2. Вопрос не определен