Click here to Skip to main content
15,884,836 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Error on line 45 Pin
maryam.saboor4-Dec-18 23:54
professionalmaryam.saboor4-Dec-18 23:54 
Questiondata transfer in two dimensional array format Pin
Member 1406088822-Nov-18 20:31
Member 1406088822-Nov-18 20:31 
QuestionRe: data transfer in two dimensional array format Pin
ZurdoDev4-Dec-18 2:29
professionalZurdoDev4-Dec-18 2:29 
QuestionJavascript syntax Pin
ghazabaz22-Nov-18 15:48
ghazabaz22-Nov-18 15:48 
AnswerRe: Javascript syntax Pin
Graham Breach22-Nov-18 21:36
Graham Breach22-Nov-18 21:36 
AnswerRe: Javascript syntax Pin
NithyaKumarJai25-Nov-18 18:23
NithyaKumarJai25-Nov-18 18:23 
Questionunexpected result function autocomplete() Jquery Pin
serenimus21-Nov-18 7:15
serenimus21-Nov-18 7:15 
AnswerRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming21-Nov-18 8:16
mveRichard Deeming21-Nov-18 8:16 
Calling autocomplete on every key press will most likely cause problems. You would normally only call the autocomplete function once:
JavaScript
$(function(){
    var comunidades = [
        "Galicia",
        "Asturias",
        "Cantabria",
        "Islas Baleares"
    ];
    
    $("#comu").autocomplete({
        source: comunidades
    });
});

If that doesn't work, then you'll need to tell us which autocomplete library you're using.

NB: $(document).ready(...) is deprecated:
jQuery offers several ways to attach a function that will run when the DOM is ready. All of the following syntaxes are equivalent:
  • $( handler )
  • $( document ).ready( handler )
  • $( "document" ).ready( handler )
  • $( "img" ).ready( handler )
  • $().ready( handler )

As of jQuery 3.0, only the first syntax is recommended; the other syntaxes still work but are deprecated.




"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
serenimus22-Nov-18 6:11
serenimus22-Nov-18 6:11 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 6:13
serenimus22-Nov-18 6:13 
GeneralRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming22-Nov-18 8:41
mveRichard Deeming22-Nov-18 8:41 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus1-Dec-18 0:19
serenimus1-Dec-18 0:19 
QuestionHello Pin
Member 1406106620-Nov-18 8:15
Member 1406106620-Nov-18 8:15 
QuestionJavascript help Pin
ghazabaz8-Nov-18 15:54
ghazabaz8-Nov-18 15:54 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 3:49
mveRichard Deeming9-Nov-18 3:49 
QuestionRe: Javascript help Pin
ghazabaz9-Nov-18 5:55
ghazabaz9-Nov-18 5:55 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 7:48
mveRichard Deeming9-Nov-18 7:48 
Generalguidence for the begginners Pin
Kshitiz Thapa2-Nov-18 3:16
Kshitiz Thapa2-Nov-18 3:16 
GeneralRe: guidence for the begginners Pin
Richard MacCutchan2-Nov-18 4:00
mveRichard MacCutchan2-Nov-18 4:00 
SuggestionRe: guidence for the begginners Pin
CHill6015-Nov-18 21:46
mveCHill6015-Nov-18 21:46 
QuestionLoops Pin
Member 1403490227-Oct-18 5:06
Member 1403490227-Oct-18 5:06 
AnswerRe: Loops Pin
Richard MacCutchan27-Oct-18 5:54
mveRichard MacCutchan27-Oct-18 5:54 
QuestionSTOP VALIDATION Pin
Member 1344978425-Oct-18 0:44
Member 1344978425-Oct-18 0:44 
AnswerRe: STOP VALIDATION Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:40
professionalAfzaal Ahmad Zeeshan25-Oct-18 2:40 
Questionno me funciona funcion autocomplete Jquery Pin
serenimus20-Oct-18 8:53
serenimus20-Oct-18 8:53 

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.