Create auto complete in input?

0

I want to do a autocomplete effect on a input , as a prompt, eg I have the following commands in a array php:

ADD 
SUB
SHOW
MUL

I want to make it start typing, for example typing " A ", display a kind of placeholder completing the command, like this: A DD, but not adding "DD "in the input, just as a placeholder, and if the user presses the key TAB for example there it adds" DD "to input .

My biggest difficulty is to have this placeholder effect on input I do not have the slightest idea how to do it. I think the rest I can do by myself, but the starting point (autocomplete effect) I have no idea how to do, can you give a light?

    
asked by anonymous 24.02.2016 / 05:13

0 answers