I create a system to have the names of the players how get the 2 values of the names
I create 2 input text and I want take the 2 values to show the name's players but I can not:
HTML:
<section id="first_section" class="first_section">
<input type="text" placeholder="Nom du premier joueur" style="color: blue; font-size: 120px;" size="500" id="firsttext"><br>
<button type="button" id="first_button">Suiva`enter code here`nt ></button>
</section>
<section id="second_section" class="second_section">
<input type="text" placeholder="Nom du deuxième joueur" style="color: blue; font-size: 120px;" size="500" id="secondtext"><br>
<button type="button" id="second_button">Suivant ></button>
</section>
JavaScript:
var firsttext = [document.querySelector("#firsttext").element, document.querySelector("#secondtext").element];
if (!estValide(this))
{
afficheur.sendMessage("Case occupée ! <br />Joueur " + firsttext[tour] + " c'est toujours à vous !");
}
" + firstValue[tour] + " c'est votre tour."); – Xehanorth Jan 19 '19 at 21:13