TRYONLINE ajax input.

An autocomplete control with only one line interface (No dropdown|select|combobox control). Ideal for compact designs

Author: Grenville Tryon (gtryonp@hotmail.com)

Please type (lowercase): a
 
Corresponding code:  
 
After a second the text will show two parts: the filter (current typed letters) and the complement to the first matching element marked. Current search engine respects the letter case.
The second textbox will receive the corresponding code.

 
Type any search. After a delay of one second without typewritting, the input text will show itself in a red color,load the autocomplete, and show it in their natural color.  
 
SPECIAL KEYBOARDS:
[right]
-> extend the filter to the next letter
[left]
-> contract the filter to the prior letter
[up]
-> select prior matching element
[down]
-> select next matching element
[backspace]
-> erase last letter from filter and reload the autocomplete
 
 
SYNTAX:  
 
 
(test.php contains the code for use it with arrays or with a MySQL database. Currently an array of countries).