Last active
March 13, 2017 00:37
-
-
Save lmuzquiz/37ef20ab2291915c74ff970cc9beb236 to your computer and use it in GitHub Desktop.
Seleccionando Elemento por ID
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
const UnaConstante = document.getElementById("mi_elemento"); | |
//El elemento que accesamos también puede ser dinámico usando: | |
const UnaConstante = document.getElementById(MiElemento); | |
//Donde MiElemento será una constante definida en otro lugar. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment