﻿function verif_radio()
{
pas_repondu = '';
for (var j = 1; j<=10; j++) {
    var liste = document.forms["quizz"].elements["q"+j];
    coche = 0;
    for (var i = 0; i < liste.length; i++) {
        if(liste[i].checked) {
           coche += 1;
        }
    }
    
    if (coche == 0) {
        pas_repondu += "\n question " + j;
    }
}

if (pas_repondu == "") {
        return true;
    }
    else {
        alert("Vous n'avez pas répondu à :" + pas_repondu);
        return false;
    }

}

        