Last active
July 29, 2020 23:18
-
-
Save parzibyte/97136c791fd45cf1419e3c39953a08f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Obtenemos una referencia al elemento | |
const $elemento = document.querySelector("#cuerpoTabla"); | |
// El botón solo es para la demostración | |
const $btnLimpiar = document.querySelector("#btnLimpiar"); | |
// Y en el click, limpiamos | |
$btnLimpiar.addEventListener("click", () => { | |
$elemento.innerHTML = ""; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment