Состояние в дикте не нажимается правильно

У меня есть 2 типа вопросов в платформе викторины, один выбор с радиокнопкой и многовариантный выбор с флажком, когда флажок находится в начале викторины, он работает, если он находится во втором вопросе или в последнем, у меня ошибка, и в моем журнале консоли rep не является массивом

В моем html у меня есть данные, которые содержат вопросы, ответы и тип ответов:

 <div class="repsCol">


      {% for Question_reponse in Questions_reponses %}


         <div class = "Question {% if forloop.first %}active{% endif %}">

            <div class = "title_section_quiz">
               <h2 class="qst">{{Question_reponse.question}}</h2>

               <div class = "Reponses">
                  
                     <div class = "img_quiz">
                        <img src="{% static 'img/sbg1.png' %}" width="300" height="300" alt="">
                     </div>


                     <div class = "reps_quiz">
                        {% for rep  in Question_reponse.reps %}
                           {% if Question_reponse.question_type == 'normal' %}
                              <label  class="container_radio" ><input type="radio" id = "chSub" class="subRep"  name = "rep" value="{{rep}}">{{rep}}<span class="checkmark_radio"></span></label>
                           {% elif Question_reponse.question_type == 'multiples' %}
                              <label ><input type="checkbox" id = "chSub" class="subRep"  name = "repCheck" value="{{rep}}">{{rep}}</label>
                           
                           {% endif %}
                        {% endfor %}
                     </div>
                  
               </div>

            </div>
        
               
         </div> 
      {% endfor %}
      
         <div class = "ButtonNext containerButNxt">
            <input  id = "ButNxt" type="button" onclick="Next()" value = "Question suivate">
         </div>

      </div>

и функция next() в jquery :

Вернуться на верх