Autocomplete from select dropdown


Is it possible to have an autocomplete for advance filter?
below is my code.

<select name='sel' id='sel'>
<option value ='b_Title'>Title:</option>
<option value='ba_Accnum'>Accession number:</option>
<option value ='isbn'>ISBN</option>
<option value ='author'>Author</option>
<input type='text' id="keyword" tabindex="0" name = 'keyword'/>
<input type='submit' value='submit' name='minor'  onclick="basic()">

Select options will decide what table can I found my keyword.
Any help will do.

you will have to use javascript event onkeypress to check any character entered in textbox and use ajax to show suggestions fetched from database