Build a Pokémon Search App Project - Build a Pokémon Search App

Tell us what’s happening:

The error: You should have an input element with an id of “search-input” and is required.

Yet I have it

Your code so far

  <div class="input-field">
        <input type="text" id="search-input" />
        <button id="search-btn">Search</button>
      </div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Build a Pokémon Search App Project - Build a Pokémon Search App

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

We need to see all your code.

Make sure you didn’t add the same id to another element.

Your input should have a required attribute. If you’re still stuck, google “required attribute javascript”