Here is the HTML code I have:
<select class="form-control" id="city" style="width:100%; margin-left:2%;">
<option>Sonal</option>
<option>abcd</option>
<option>3</option>
<option>4</option>
<option>aaaa</option>
</select>
What I am looking for: I want to select "abcd". There are two ways of selecting it.
- First, click on the dropdown and select one option.
Secondly, type a key in the select box and related answers will be filtered.
For example, if we type 'a' in the select box, then two options should filter in the dropdown.
1. abcd 2. aaaa