Created
September 2, 2019 22:05
-
-
Save parzibyte/d3692d247fa26e590e81552076ae4f99 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
const $btnEnfocar = document.querySelector("#btnEnfocar"), | |
$nombre = document.querySelector("#nombre"); | |
// En el click, enfocar | |
$btnEnfocar.addEventListener("click", () => { | |
$nombre.focus(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment