forked from marquez.juan/clase-9-eventos
Finish exercise 2
This commit is contained in:
@@ -8,3 +8,12 @@ botonf.addEventListener("click", () => {
|
|||||||
parrafob.textContent = "Boton clickeado " + contador + " veces";
|
parrafob.textContent = "Boton clickeado " + contador + " veces";
|
||||||
}) // Ejercicio 1
|
}) // Ejercicio 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const textoCaracter = document.getElementById("text");
|
||||||
|
const parrafoCaracter = document.getElementById("carac0");
|
||||||
|
|
||||||
|
|
||||||
|
textoCaracter.addEventListener("input", () => {
|
||||||
|
parrafoCaracter.textContent = "Cantidad de caracteres: " + textoCaracter.value.length
|
||||||
|
}) // Ejercicio 2
|
||||||
|
|||||||
Reference in New Issue
Block a user