Skip to content

Instantly share code, notes, and snippets.

@koficoud
Created May 5, 2022 20:28
Show Gist options
  • Save koficoud/cfbd3b5b7abbaf564300c7a1ef2944aa to your computer and use it in GitHub Desktop.
Save koficoud/cfbd3b5b7abbaf564300c7a1ef2944aa to your computer and use it in GitHub Desktop.
Obteniendo referencia de los elementos HTML
// guardamos la referencia del contenedor donde mostraremos la imagen
const previewEl = document.querySelector('#preview');
// guardamos la referencia del input donde se cargará la imagen
const inputEl = document.querySelector('#image');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment