The easiest way to put a placeholder text into a search box is with the ‘placeholder’ attribute, like that:

 /* Your code... */

Add the attribute to the search input field directly in the template code.