I got a SQL Table with column names as Name, Ascii_Name, Alternate Names. When user types name from the set of values, the auto complete has to display values correspondingly.
For example if the user types 'Aba' it has to show all the values that start with 'Aba' including the ones in 'alternate names' column which doesn't follow this pattern like abt. To make it more clear another example is as soon as he types Abayah, it has to display all the names which follow this pattern including the ones from alternate names as well like abahyahran,abayrafda.
+------------+------------------+--------------------------------------------------+
| Name | Ascii_Name | Alternate_names |
+------------+------------------+--------------------------------------------------+
| Abat | Abat1 | Abat, Abat1, abt |
| Abayahr | Abayahr1 | Abayahr,Abayahr1, abayahr, abahyahran, abayrafda |
| Abayah | Abayah1 | Abayah,Abayah1, abayahtr, abayahnwer |
| Abath | Abath1 | Abath, Abath1, abatgh, abatdfg |
| Carne | Carnt | Carne, Carnt, canrtrt, carnas |
+------------+------------------+--------------------------------------------------+
I'm kind of clueless in achieving this requirement, any advise or suggestions or pointers in this direction would be appreciated.
I'm not asking for any code only indicators or broad guidelines in achieving this.
<datalist>and then rendering your table data into the page that way.