Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!