Skip to content

Mostrar en la pagina lo que esta en la consola (Pokedex) #470

Answered by doguedogue
Juan-2003 asked this question in Q&A
Discussion options

You must be logged in to vote

Si en tu HTML tienes un input para tu tipo, este tiene un atributo value que es el valor que se tiene adentro
<input type="text" id="tipo" value="">

En el JS cuando obtienes el valor que obtuviste con la API lo insertas así:
const inputfield = document.getElementById("tipo"); inputfield.value = tipo;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LuisAlias
Comment options

Answer selected by Juan-2003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants