first comit
This commit is contained in:
7
corrections/35-dom-interaction-input.js
Normal file
7
corrections/35-dom-interaction-input.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const bouton = document.getElementById('mon-bouton');
|
||||
const champTexte = document.getElementById('champ-texte');
|
||||
|
||||
bouton.addEventListener('click', () => {
|
||||
const valeur = champTexte.value;
|
||||
alert(`La valeur de l'input est : ${valeur}`);
|
||||
});
|
||||
Reference in New Issue
Block a user