function genererListe() {
    // Récupère le ID du tournoi sélectionné
    var idTournoi = document.getElementById("tournois").value.split(":")[0];
    document.getElementById("idTournoiTemp1").value = idTournoi;
    //Requête AJAX pour générer la liste des futures équipes
 document.getElementById("joueurs").innerHTML= <?php echo $dropDownJoueur->getHtmlWithParam(179);?>
    faireRequeteGenerationListeFormation(idTournoi);
}
Sorry my code is in french but here's the context. I want to put the variable idTournoi instead of the 179 that I have right now. everything works in my code except when i want to plug my JS variable. Thank you for your help
