Search Box with Full Text

0

I will insert the search box below into the text and I want it to be by default the search text "brands of home appliances" so that the user must only click search without having to fill in 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 it?

    
asked by anonymous 29.12.2017 / 21:55

1 answer

1

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

Your code would look like:

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