Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Autocomplete help

Autocomplete help 1 Jahr 2 Monate her #98485

  • John_T
  • John_Ts Avatar
Hello all,

I'm having problems trying to set an autocomplete function for a question on the country of residence.

I use the code below to give the automated responses for Australia, Brazil and Canada. However this code creates an unwanted text field to which is applied the autocomplete - what I would like to do is remove this text field and apply the autocomplete function to the response field (see attached image).

As you can probably tell, I haven't a clue with html but would like to learn !

Many thanks in advance

John

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>autocomplete demo</title>
<link rel="stylesheet" href="code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="code.jquery.com/jquery-1.9.1.js"></script>
<script src="code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<body>
<label for="autocomplete">
<input id="autocomplete">
<script>
$( "#autocomplete" ).autocomplete({
source: [ "Australia", "Brazil", "Canada"]
});
</script>
</body>
</html>


Anhang autocompleteex.png nicht gefunden

Der Administrator hat öffentliche Schreibrechte deaktiviert.

Autocomplete help 1 Jahr 2 Monate her #98490

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1109
  • Dank erhalten: 250
  • Karma: 78
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: John_T

Autocomplete help 1 Jahr 2 Monate her #98492

  • John_T
  • John_Ts Avatar
Merci beaucoup, ca marche !
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.141 Sekunden
Donation Image