diff --git a/templates/landing_form.html b/templates/landing_form.html index 49cf39d..3a9ed69 100644 --- a/templates/landing_form.html +++ b/templates/landing_form.html @@ -182,8 +182,8 @@ let voie; for (i in voies) { voie = voies[i] - $("#voies").append(""); + $("#voies").append(""); if (voie[0] === search) { valueMatch=true; } @@ -191,6 +191,7 @@ if (voies.length == 1 || valueMatch) { $('#btnTestAdresse').collapse('show'); voie = voies[0] + $("#voieInput").val(voie[0]); $('#btnTestAdresse').focus(); } else { $('#btnTestAdresse').collapse('hide');