Click here to Skip to main content
14,361,180 members

JavaScript

 
QuestionJavascript syntax Pin
ghazabaz22-Nov-18 16:48
memberghazabaz22-Nov-18 16:48 
AnswerRe: Javascript syntax Pin
Graham Breach22-Nov-18 22:36
memberGraham Breach22-Nov-18 22:36 
AnswerRe: Javascript syntax Pin
NithyaKumarJai25-Nov-18 19:23
memberNithyaKumarJai25-Nov-18 19:23 
Questionunexpected result function autocomplete() Jquery Pin
serenimus21-Nov-18 8:15
memberserenimus21-Nov-18 8:15 
AnswerRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming21-Nov-18 9:16
mveRichard Deeming21-Nov-18 9:16 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 7:11
memberserenimus22-Nov-18 7:11 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 7:13
memberserenimus22-Nov-18 7:13 
GeneralRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming22-Nov-18 9:41
mveRichard Deeming22-Nov-18 9:41 
$(function(){
    var comunidades = [
        "Galicia",
        "Asturias",
        "Cantabria",
        "Euskadi"
    ];
    
    $("#comu").autocomplete({
        source: comunidades
    });
}); 

Assuming you have an <input> with id="comu" somewhere in your document, and you've linked to the jQuery UI CSS[^] as well as the scripts, that should work. It's virtually identical to the first example on the jQuery UI site[^].



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus1-Dec-18 1:19
memberserenimus1-Dec-18 1:19 
QuestionHello Pin
Member 1406106620-Nov-18 9:15
memberMember 1406106620-Nov-18 9:15 
QuestionJavascript help Pin
ghazabaz8-Nov-18 16:54
memberghazabaz8-Nov-18 16:54 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 4:49
mveRichard Deeming9-Nov-18 4:49 
QuestionRe: Javascript help Pin
ghazabaz9-Nov-18 6:55
memberghazabaz9-Nov-18 6:55 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 8:48
mveRichard Deeming9-Nov-18 8:48 
Generalguidence for the begginners Pin
Kshitiz Thapa2-Nov-18 4:16
memberKshitiz Thapa2-Nov-18 4:16 
GeneralRe: guidence for the begginners Pin
Richard MacCutchan2-Nov-18 5:00
protectorRichard MacCutchan2-Nov-18 5:00 
GeneralMessage Closed Pin
15-Nov-18 22:42
membermohit gite15-Nov-18 22:42 
SuggestionRe: guidence for the begginners Pin
CHill6015-Nov-18 22:46
protectorCHill6015-Nov-18 22:46 
QuestionLoops Pin
Member 1403490227-Oct-18 6:06
memberMember 1403490227-Oct-18 6:06 
AnswerRe: Loops Pin
Richard MacCutchan27-Oct-18 6:54
protectorRichard MacCutchan27-Oct-18 6:54 
QuestionSTOP VALIDATION Pin
Member 1344978425-Oct-18 1:44
memberMember 1344978425-Oct-18 1:44 
AnswerRe: STOP VALIDATION Pin
Afzaal Ahmad Zeeshan25-Oct-18 3:40
mveAfzaal Ahmad Zeeshan25-Oct-18 3:40 
Questionno me funciona funcion autocomplete Jquery Pin
serenimus20-Oct-18 9:53
memberserenimus20-Oct-18 9:53 
AnswerRe: no me funciona funcion autocomplete Jquery Pin
Nelek20-Oct-18 9:59
protectorNelek20-Oct-18 9:59 
QuestionMap JSON data file with dates and multiple string value pairs to Angular/Chart.js Pin
Member 1201357914-Oct-18 23:08
memberMember 1201357914-Oct-18 23:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.