I have one simple question. I have a search box in which the box used datalist. When user input some alphabet it will show the possibility of the word. The problem is when user click on the possible result displayed. The form worked fine because the data is submitted. When the page refresh (submit form), the textbox is blank. It does not show the option clicked by user earlier. I would like to make it displayed on textbox whenever user click the option. For example, user click Opera
, after the form submit, it still display Opera on the text box.
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>