Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

118
Vistas
Demonstrate object key value according to input

I am trying to link my js vanilla code with json. I want to show value of object key that input in the search box. I add an example image of what i want. Thanks image of result type that i want

My basic html and script:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sono brillo</title>
</head>
<body>
    <h1>hello</h1>
    <input id = "userInput" > <br> <br>
   <button onclick="myFunction()" > Run </button>
   <h1 id="message"> </h1>

   <style>
       body{background-color: darkblue; text-align: center; color: floralwhite;}

   </style>
   <script>
        function myFunction() {

            let userInput = document.querySelector("#userInput");
            let message = document.querySelector("#message");

            message.innerHTML = userInput.value;
}

   </script>
</body>
</html> 

and my json

https://drive.google.com/file/d/1ELIw__G5fXP3OZVTd-AZ9tu7YjzL-2G9/view?usp=sharing

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda