Search Box with Completed Text

Asked

Viewed 85 times

0

I will insert the search box below in the text and I want to be inside it already by default the search text "household appliance brands" so that the user has to just click search without having to fill the text.

<div id="divBusca">
    <input type="text" id="txtBusca" placeholder="Buscar..."/>
    <img src="search3.png" id="btnBusca" alt="Buscar"/>
</div>

How do I do??

1 answer

1


Just put a value in the input text with the desired text, in case "home appliance brands". The value field input text is the text displayed on it.

Your code would stand:

<div id="divBusca">
   <input type="text" id="txtBusca" placeholder="Buscar..." value="marcas de eletrodomésticos" />
   <img src="search3.png" id="btnBusca" alt="Buscar"/>
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.