javascript - Jquery autocomplete -
I want to activate jQuery auto-complete in a text box when the user enters a particular character like @ Is when the user reads after typing "joi" in their email address like john@gmail.com when the user enters text in "@", then autocomplete should be activated , And the list should display the mail extension ("Gmail.com," "Hotmail.com," "rediffmail.com," D).
var mail provider / {@ @ gmail.com}: 'Google Mail': It is difficult to read your exact question / problem, but perhaps you are looking for something like: 'Hotmail.com.com': 'Windows Live Mail', '@ Blizzard.com': 'Omgi GIF Gold! 1 '}; $ ("#InputFIELD") Change (function () {Provider = string ($ (this) .val ()). Partition ('@'); if (provider.length == 2) $ ("# infospan") .HTML (Mail Provider [Provider [ 1]] and $ ("# infospan"). Html ('');});
This & lt; span id = "infospan" & gt;
Comments
Post a Comment