I have an input text with the onkeyup event in which I type a word and it is comparing with a list of the database and returning a button with the same case exists.
I want to continue typing in the course of the options, for example:
I have a list with the words test, tornado, storm and when typing t appears the three options and as you enter it will delete some.
Notes:
I'm using ajax to generate the buttons dynamically, but I'm looking for a solution inside the php for the problem
For now, it only compares if the word is exactly the same as the one I typed in the input to print the button, I want it to print the buttons as I type.
It has to be with button, can not select or options like datalist from html5.