<div class="form-group">
<label for="commune" id="communeLabel">Séléctionnez une commune</label>
<datalist id="listCommunes">
<select class="form-control" name="commune" aria-labelledby="communeLabel">
<option>(Toutes)</option>
<option>Aclens</option>
<option>Agiez</option>
<option>Aigle</option>
<option>Allaman</option>
<option>Apples</option>
<option>Arnex-sur-Nyon</option>
<option>Arnex-sur-Orbe</option>
<option>Arzier</option>
<option>Assens</option>
<option>Aubonne</option>
<option>Avenches</option>
<option>Ballaigues</option>
<option>Ballens</option>
<option>Bassins</option>
<option>Baulmes</option>
<option>Bavois</option>
<option>Begnins</option>
<option>Belmont-sur-Lausanne</option>
<option>Belmont-sur-Yverdon</option>
<option>Bercher</option>
<option>Berolle</option>
<option>Bettens</option>
<option>Bex</option>
<option>Bioley-Magnoux</option>
<option>Bioley-Orjulaz</option>
<option>Bière</option>
<option>Blonay</option>
<option>Bofflens</option>
<option>Bogis-Bossey</option>
<option>Bonvillars</option>
<option>Borex</option>
<option>Bottens</option>
<option>Bougy-Villars</option>
<option>Boulens</option>
<option>Bourg-en-Lavaux</option>
<option>Bournens</option>
<option>Boussens</option>
<option>Bremblens</option>
<option>Brenles</option>
<option>Bretigny-sur-Morrens</option>
<option>Bretonnières</option>
<option>Buchillon</option>
<option>Bullet</option>
<option>Bursinel</option>
<option>Bursins</option>
<option>Burtigny</option>
<option>Bussigny-près-Lausanne</option>
<option>Bussy-Chardonney</option>
<option>Bussy-sur-Moudon</option>
<option>Carrouge (VD)</option>
<option>Chamblon</option>
<option>Champagne</option>
<option>Champtauroz</option>
<option>Champvent</option>
<option>Chardonne</option>
<option>Chavannes-de-Bogis</option>
<option>Chavannes-des-Bois</option>
<option>Chavannes-le-Chêne</option>
<option>Chavannes-le-Veyron</option>
<option>Chavannes-près-Renens</option>
<option>Chavannes-sur-Moudon</option>
<option>Chavornay</option>
<option>Chesalles-sur-Moudon</option>
<option>Cheseaux-Noréaz</option>
<option>Cheseaux-sur-Lausanne</option>
<option>Chessel</option>
<option>Chevilly</option>
<option>Chevroux</option>
<option>Chexbres</option>
<option>Chigny</option>
<option>Château-d'Oex</option>
<option>Chéserex</option>
<option>Chêne-Pâquier</option>
<option>Clarmont</option>
<option>Coinsins</option>
<option>Commugny</option>
<option>Concise</option>
<option>Coppet</option>
<option>Corbeyrier</option>
<option>Corcelles-le-Jorat</option>
<option>Corcelles-près-Concise</option>
<option>Corcelles-près-Payerne</option>
<option>Corcelles-sur-Chavornay</option>
<option>Corseaux</option>
<option>Corsier-sur-Vevey</option>
<option>Cossonay</option>
<option>Cottens (VD)</option>
<option>Crans-près-Céligny</option>
<option>Crassier</option>
<option>Cremin</option>
<option>Crissier</option>
<option>Cronay</option>
<option>Croy</option>
<option>Cuarnens</option>
<option>Cuarny</option>
<option>Cudrefin</option>
<option>Cugy (VD)</option>
<option>Curtilles</option>
<option>Daillens</option>
<option>Denens</option>
<option>Denges</option>
<option>Dizy</option>
<option>Dompierre (VD)</option>
<option>Donneloye</option>
<option>Duillier</option>
<option>Dully</option>
<option>Démoret</option>
<option>Echallens</option>
<option>Echandens</option>
<option>Echichens</option>
<option>Eclépens</option>
<option>Ecublens (VD)</option>
<option>Epalinges</option>
<option>Ependes (VD)</option>
<option>Essert-Pittet</option>
<option>Essertes</option>
<option>Essertines-sur-Rolle</option>
<option>Essertines-sur-Yverdon</option>
<option>Etagnières</option>
<option>Etoy</option>
<option>Eysins</option>
<option>Faoug</option>
<option>Ferlens (VD)</option>
<option>Ferreyres</option>
<option>Fey</option>
<option>Fiez</option>
<option>Fontaines-sur-Grandson</option>
<option>Forel (Lavaux)</option>
<option>Forel-sur-Lucens</option>
<option>Founex</option>
<option>Froideville</option>
<option>Féchy</option>
<option>Genolier</option>
<option>Giez</option>
<option>Gilly</option>
<option>Gimel</option>
<option>Gingins</option>
<option>Givrins</option>
<option>Gland</option>
<option>Gollion</option>
<option>Goumoëns</option>
<option>Grancy</option>
<option>Grandcour</option>
<option>Grandevent</option>
<option>Grandson</option>
<option>Grens</option>
<option>Gryon</option>
<option>Henniez</option>
<option>Hermenches</option>
<option>Jongny</option>
<option>Jorat-Menthue</option>
<option>Jouxtens-Mézery</option>
<option>Juriens</option>
<option>L'Abbaye</option>
<option>L'Abergement</option>
<option>L'Isle</option>
<option>L'Orient</option>
<option>La Chaux (Cossonay)</option>
<option>La Coudre</option>
<option>La Praz</option>
<option>La Rippe</option>
<option>La Sarraz</option>
<option>La Tour-de-Peilz</option>
<option>Lausanne</option>
<option>Lavey-Morcles</option>
<option>Lavigny</option>
<option>Le Brassus</option>
<option>Le Chenit</option>
<option>Le Lieu</option>
<option>Le Mont-sur-Lausanne</option>
<option>Le Pont</option>
<option>Le Sentier</option>
<option>Le Séchey</option>
<option>Le Vaud</option>
<option>Les Bioux</option>
<option>Les Clées</option>
<option>Leysin</option>
<option>Lignerolle</option>
<option>Lonay</option>
<option>Longirod</option>
<option>Lovatens</option>
<option>Lucens</option>
<option>Luins</option>
<option>Lully (VD)</option>
<option>Lussery-Villars</option>
<option>Lussy-sur-Morges</option>
<option>Lutry</option>
<option>Maracon</option>
<option>Marchissy</option>
<option>Mathod</option>
<option>Mauborget</option>
<option>Mauraz</option>
<option>Mex (VD)</option>
<option>Mies</option>
<option>Missy</option>
<option>Moiry</option>
<option>Mollens (VD)</option>
<option>Molondin</option>
<option>Mont-la-Ville</option>
<option>Mont-sur-Rolle</option>
<option>Montagny-près-Yverdon</option>
<option>Montanaire</option>
<option>Montcherand</option>
<option>Montherod</option>
<option>Montilliez</option>
<option>Montpreveyres</option>
<option>Montreux</option>
<option>Montricher</option>
<option>Morges</option>
<option>Morrens (VD)</option>
<option>Moudon</option>
<option>Mutrux</option>
<option>Mézières (VD)</option>
<option>Novalles</option>
<option>Noville</option>
<option>Nyon</option>
<option>Ogens</option>
<option>Ollon</option>
<option>Onnens (VD)</option>
<option>Oppens</option>
<option>Orbe</option>
<option>Orges</option>
<option>Ormont-Dessous</option>
<option>Ormont-Dessus</option>
<option>Orny</option>
<option>Oron</option>
<option>Orzens</option>
<option>Oulens-sous-Echallens</option>
<option>Pailly</option>
<option>Pampigny</option>
<option>Paudex</option>
<option>Payerne</option>
<option>Penthalaz</option>
<option>Penthaz</option>
<option>Penthéréaz</option>
<option>Perroy</option>
<option>Poliez-Pittet</option>
<option>Pompaples</option>
<option>Pomy</option>
<option>Prangins</option>
<option>Premier</option>
<option>Prilly</option>
<option>Provence</option>
<option>Préverenges</option>
<option>Prévonloup</option>
<option>Puidoux</option>
<option>Pully</option>
<option>Rances</option>
<option>Renens (VD)</option>
<option>Rennaz</option>
<option>Reverolle</option>
<option>Rivaz</option>
<option>Roche (VD)</option>
<option>Rolle</option>
<option>Romainmôtier-Envy</option>
<option>Romanel-sur-Lausanne</option>
<option>Romanel-sur-Morges</option>
<option>Ropraz</option>
<option>Rossenges</option>
<option>Rossinière</option>
<option>Rougemont</option>
<option>Rovray</option>
<option>Rueyres</option>
<option>Saint-Barthélemy (VD)</option>
<option>Saint-Cergue</option>
<option>Saint-George</option>
<option>Saint-Livres</option>
<option>Saint-Légier-La Chiésaz</option>
<option>Saint-Oyens</option>
<option>Saint-Prex</option>
<option>Saint-Saphorin (Lavaux)</option>
<option>Saint-Sulpice (VD)</option>
<option>Sainte-Croix</option>
<option>Sarzens</option>
<option>Saubraz</option>
<option>Savigny</option>
<option>Senarclens</option>
<option>Sergey</option>
<option>Servion</option>
<option>Signy-Avenex</option>
<option>Suchy</option>
<option>Sullens</option>
<option>Suscévaz</option>
<option>Syens</option>
<option>Sévery</option>
<option>Tannay</option>
<option>Tartegnin</option>
<option>Tolochenaz</option>
<option>Trey</option>
<option>Treycovagnes</option>
<option>Treytorrens (Payerne)</option>
<option>Trélex</option>
<option>Tévenon</option>
<option>Ursins</option>
<option>Valbroye</option>
<option>Valeyres-sous-Montagny</option>
<option>Valeyres-sous-Rances</option>
<option>Valeyres-sous-Ursins</option>
<option>Vallorbe</option>
<option>Vaulion</option>
<option>Vaux-sur-Morges</option>
<option>Vevey</option>
<option>Veytaux</option>
<option>Vich</option>
<option>Villars-Epeney</option>
<option>Villars-Sainte-Croix</option>
<option>Villars-le-Comte</option>
<option>Villars-le-Terroir</option>
<option>Villars-sous-Yens</option>
<option>Villarzel</option>
<option>Villeneuve (VD)</option>
<option>Vinzel</option>
<option>Vuarrens</option>
<option>Vucherens</option>
<option>Vufflens-la-Ville</option>
<option>Vufflens-le-Château</option>
<option>Vugelles-La Mothe</option>
<option>Vuiteboeuf</option>
<option>Vulliens</option>
<option>Vullierens</option>
<option>Vully-les-Lacs</option>
<option>Yens</option>
<option>Yverdon-les-Bains</option>
<option>Yvonand</option>
<option>Yvorne</option>
</select> <small id="communefallbackLabel" class="form-text">Merci de le spécifier s'il ne figure pas dans la liste</small>
</datalist>
<input id="commune" class="form-control" name="state" list="listCommunes" aria-labelledby="communefallbackLabel">
</div>
<div class="form-group">
<label for="{{ id }}" id="{{ id }}Label">{{ label }}</label>
<datalist id="{{ list.id }}">
<select class="form-control" name="{{ id }}" aria-labelledby="{{ id }}Label">
{%- for option in list.options %}
<option>{{ option.name }}</option>
{%- endfor %}
</select> <small id="{{ id }}fallbackLabel" class="form-text">{{ fallbackLabel }}</small>
</datalist>
<input id="{{ id }}" class="{{ class }}" name="state" list="{{ list.id }}" aria-labelledby="{{ id }}fallbackLabel">
</div>
{
"label": "Séléctionnez une commune",
"id": "commune",
"class": "form-control",
"list": {
"id": "listCommunes",
"options": [
{
"name": "(Toutes)"
},
{
"name": "Aclens"
},
{
"name": "Agiez"
},
{
"name": "Aigle"
},
{
"name": "Allaman"
},
{
"name": "Apples"
},
{
"name": "Arnex-sur-Nyon"
},
{
"name": "Arnex-sur-Orbe"
},
{
"name": "Arzier"
},
{
"name": "Assens"
},
{
"name": "Aubonne"
},
{
"name": "Avenches"
},
{
"name": "Ballaigues"
},
{
"name": "Ballens"
},
{
"name": "Bassins"
},
{
"name": "Baulmes"
},
{
"name": "Bavois"
},
{
"name": "Begnins"
},
{
"name": "Belmont-sur-Lausanne"
},
{
"name": "Belmont-sur-Yverdon"
},
{
"name": "Bercher"
},
{
"name": "Berolle"
},
{
"name": "Bettens"
},
{
"name": "Bex"
},
{
"name": "Bioley-Magnoux"
},
{
"name": "Bioley-Orjulaz"
},
{
"name": "Bière"
},
{
"name": "Blonay"
},
{
"name": "Bofflens"
},
{
"name": "Bogis-Bossey"
},
{
"name": "Bonvillars"
},
{
"name": "Borex"
},
{
"name": "Bottens"
},
{
"name": "Bougy-Villars"
},
{
"name": "Boulens"
},
{
"name": "Bourg-en-Lavaux"
},
{
"name": "Bournens"
},
{
"name": "Boussens"
},
{
"name": "Bremblens"
},
{
"name": "Brenles"
},
{
"name": "Bretigny-sur-Morrens"
},
{
"name": "Bretonnières"
},
{
"name": "Buchillon"
},
{
"name": "Bullet"
},
{
"name": "Bursinel"
},
{
"name": "Bursins"
},
{
"name": "Burtigny"
},
{
"name": "Bussigny-près-Lausanne"
},
{
"name": "Bussy-Chardonney"
},
{
"name": "Bussy-sur-Moudon"
},
{
"name": "Carrouge (VD)"
},
{
"name": "Chamblon"
},
{
"name": "Champagne"
},
{
"name": "Champtauroz"
},
{
"name": "Champvent"
},
{
"name": "Chardonne"
},
{
"name": "Chavannes-de-Bogis"
},
{
"name": "Chavannes-des-Bois"
},
{
"name": "Chavannes-le-Chêne"
},
{
"name": "Chavannes-le-Veyron"
},
{
"name": "Chavannes-près-Renens"
},
{
"name": "Chavannes-sur-Moudon"
},
{
"name": "Chavornay"
},
{
"name": "Chesalles-sur-Moudon"
},
{
"name": "Cheseaux-Noréaz"
},
{
"name": "Cheseaux-sur-Lausanne"
},
{
"name": "Chessel"
},
{
"name": "Chevilly"
},
{
"name": "Chevroux"
},
{
"name": "Chexbres"
},
{
"name": "Chigny"
},
{
"name": "Château-d'Oex"
},
{
"name": "Chéserex"
},
{
"name": "Chêne-Pâquier"
},
{
"name": "Clarmont"
},
{
"name": "Coinsins"
},
{
"name": "Commugny"
},
{
"name": "Concise"
},
{
"name": "Coppet"
},
{
"name": "Corbeyrier"
},
{
"name": "Corcelles-le-Jorat"
},
{
"name": "Corcelles-près-Concise"
},
{
"name": "Corcelles-près-Payerne"
},
{
"name": "Corcelles-sur-Chavornay"
},
{
"name": "Corseaux"
},
{
"name": "Corsier-sur-Vevey"
},
{
"name": "Cossonay"
},
{
"name": "Cottens (VD)"
},
{
"name": "Crans-près-Céligny"
},
{
"name": "Crassier"
},
{
"name": "Cremin"
},
{
"name": "Crissier"
},
{
"name": "Cronay"
},
{
"name": "Croy"
},
{
"name": "Cuarnens"
},
{
"name": "Cuarny"
},
{
"name": "Cudrefin"
},
{
"name": "Cugy (VD)"
},
{
"name": "Curtilles"
},
{
"name": "Daillens"
},
{
"name": "Denens"
},
{
"name": "Denges"
},
{
"name": "Dizy"
},
{
"name": "Dompierre (VD)"
},
{
"name": "Donneloye"
},
{
"name": "Duillier"
},
{
"name": "Dully"
},
{
"name": "Démoret"
},
{
"name": "Echallens"
},
{
"name": "Echandens"
},
{
"name": "Echichens"
},
{
"name": "Eclépens"
},
{
"name": "Ecublens (VD)"
},
{
"name": "Epalinges"
},
{
"name": "Ependes (VD)"
},
{
"name": "Essert-Pittet"
},
{
"name": "Essertes"
},
{
"name": "Essertines-sur-Rolle"
},
{
"name": "Essertines-sur-Yverdon"
},
{
"name": "Etagnières"
},
{
"name": "Etoy"
},
{
"name": "Eysins"
},
{
"name": "Faoug"
},
{
"name": "Ferlens (VD)"
},
{
"name": "Ferreyres"
},
{
"name": "Fey"
},
{
"name": "Fiez"
},
{
"name": "Fontaines-sur-Grandson"
},
{
"name": "Forel (Lavaux)"
},
{
"name": "Forel-sur-Lucens"
},
{
"name": "Founex"
},
{
"name": "Froideville"
},
{
"name": "Féchy"
},
{
"name": "Genolier"
},
{
"name": "Giez"
},
{
"name": "Gilly"
},
{
"name": "Gimel"
},
{
"name": "Gingins"
},
{
"name": "Givrins"
},
{
"name": "Gland"
},
{
"name": "Gollion"
},
{
"name": "Goumoëns"
},
{
"name": "Grancy"
},
{
"name": "Grandcour"
},
{
"name": "Grandevent"
},
{
"name": "Grandson"
},
{
"name": "Grens"
},
{
"name": "Gryon"
},
{
"name": "Henniez"
},
{
"name": "Hermenches"
},
{
"name": "Jongny"
},
{
"name": "Jorat-Menthue"
},
{
"name": "Jouxtens-Mézery"
},
{
"name": "Juriens"
},
{
"name": "L'Abbaye"
},
{
"name": "L'Abergement"
},
{
"name": "L'Isle"
},
{
"name": "L'Orient"
},
{
"name": "La Chaux (Cossonay)"
},
{
"name": "La Coudre"
},
{
"name": "La Praz"
},
{
"name": "La Rippe"
},
{
"name": "La Sarraz"
},
{
"name": "La Tour-de-Peilz"
},
{
"name": "Lausanne"
},
{
"name": "Lavey-Morcles"
},
{
"name": "Lavigny"
},
{
"name": "Le Brassus"
},
{
"name": "Le Chenit"
},
{
"name": "Le Lieu"
},
{
"name": "Le Mont-sur-Lausanne"
},
{
"name": "Le Pont"
},
{
"name": "Le Sentier"
},
{
"name": "Le Séchey"
},
{
"name": "Le Vaud"
},
{
"name": "Les Bioux"
},
{
"name": "Les Clées"
},
{
"name": "Leysin"
},
{
"name": "Lignerolle"
},
{
"name": "Lonay"
},
{
"name": "Longirod"
},
{
"name": "Lovatens"
},
{
"name": "Lucens"
},
{
"name": "Luins"
},
{
"name": "Lully (VD)"
},
{
"name": "Lussery-Villars"
},
{
"name": "Lussy-sur-Morges"
},
{
"name": "Lutry"
},
{
"name": "Maracon"
},
{
"name": "Marchissy"
},
{
"name": "Mathod"
},
{
"name": "Mauborget"
},
{
"name": "Mauraz"
},
{
"name": "Mex (VD)"
},
{
"name": "Mies"
},
{
"name": "Missy"
},
{
"name": "Moiry"
},
{
"name": "Mollens (VD)"
},
{
"name": "Molondin"
},
{
"name": "Mont-la-Ville"
},
{
"name": "Mont-sur-Rolle"
},
{
"name": "Montagny-près-Yverdon"
},
{
"name": "Montanaire"
},
{
"name": "Montcherand"
},
{
"name": "Montherod"
},
{
"name": "Montilliez"
},
{
"name": "Montpreveyres"
},
{
"name": "Montreux"
},
{
"name": "Montricher"
},
{
"name": "Morges"
},
{
"name": "Morrens (VD)"
},
{
"name": "Moudon"
},
{
"name": "Mutrux"
},
{
"name": "Mézières (VD)"
},
{
"name": "Novalles"
},
{
"name": "Noville"
},
{
"name": "Nyon"
},
{
"name": "Ogens"
},
{
"name": "Ollon"
},
{
"name": "Onnens (VD)"
},
{
"name": "Oppens"
},
{
"name": "Orbe"
},
{
"name": "Orges"
},
{
"name": "Ormont-Dessous"
},
{
"name": "Ormont-Dessus"
},
{
"name": "Orny"
},
{
"name": "Oron"
},
{
"name": "Orzens"
},
{
"name": "Oulens-sous-Echallens"
},
{
"name": "Pailly"
},
{
"name": "Pampigny"
},
{
"name": "Paudex"
},
{
"name": "Payerne"
},
{
"name": "Penthalaz"
},
{
"name": "Penthaz"
},
{
"name": "Penthéréaz"
},
{
"name": "Perroy"
},
{
"name": "Poliez-Pittet"
},
{
"name": "Pompaples"
},
{
"name": "Pomy"
},
{
"name": "Prangins"
},
{
"name": "Premier"
},
{
"name": "Prilly"
},
{
"name": "Provence"
},
{
"name": "Préverenges"
},
{
"name": "Prévonloup"
},
{
"name": "Puidoux"
},
{
"name": "Pully"
},
{
"name": "Rances"
},
{
"name": "Renens (VD)"
},
{
"name": "Rennaz"
},
{
"name": "Reverolle"
},
{
"name": "Rivaz"
},
{
"name": "Roche (VD)"
},
{
"name": "Rolle"
},
{
"name": "Romainmôtier-Envy"
},
{
"name": "Romanel-sur-Lausanne"
},
{
"name": "Romanel-sur-Morges"
},
{
"name": "Ropraz"
},
{
"name": "Rossenges"
},
{
"name": "Rossinière"
},
{
"name": "Rougemont"
},
{
"name": "Rovray"
},
{
"name": "Rueyres"
},
{
"name": "Saint-Barthélemy (VD)"
},
{
"name": "Saint-Cergue"
},
{
"name": "Saint-George"
},
{
"name": "Saint-Livres"
},
{
"name": "Saint-Légier-La Chiésaz"
},
{
"name": "Saint-Oyens"
},
{
"name": "Saint-Prex"
},
{
"name": "Saint-Saphorin (Lavaux)"
},
{
"name": "Saint-Sulpice (VD)"
},
{
"name": "Sainte-Croix"
},
{
"name": "Sarzens"
},
{
"name": "Saubraz"
},
{
"name": "Savigny"
},
{
"name": "Senarclens"
},
{
"name": "Sergey"
},
{
"name": "Servion"
},
{
"name": "Signy-Avenex"
},
{
"name": "Suchy"
},
{
"name": "Sullens"
},
{
"name": "Suscévaz"
},
{
"name": "Syens"
},
{
"name": "Sévery"
},
{
"name": "Tannay"
},
{
"name": "Tartegnin"
},
{
"name": "Tolochenaz"
},
{
"name": "Trey"
},
{
"name": "Treycovagnes"
},
{
"name": "Treytorrens (Payerne)"
},
{
"name": "Trélex"
},
{
"name": "Tévenon"
},
{
"name": "Ursins"
},
{
"name": "Valbroye"
},
{
"name": "Valeyres-sous-Montagny"
},
{
"name": "Valeyres-sous-Rances"
},
{
"name": "Valeyres-sous-Ursins"
},
{
"name": "Vallorbe"
},
{
"name": "Vaulion"
},
{
"name": "Vaux-sur-Morges"
},
{
"name": "Vevey"
},
{
"name": "Veytaux"
},
{
"name": "Vich"
},
{
"name": "Villars-Epeney"
},
{
"name": "Villars-Sainte-Croix"
},
{
"name": "Villars-le-Comte"
},
{
"name": "Villars-le-Terroir"
},
{
"name": "Villars-sous-Yens"
},
{
"name": "Villarzel"
},
{
"name": "Villeneuve (VD)"
},
{
"name": "Vinzel"
},
{
"name": "Vuarrens"
},
{
"name": "Vucherens"
},
{
"name": "Vufflens-la-Ville"
},
{
"name": "Vufflens-le-Château"
},
{
"name": "Vugelles-La Mothe"
},
{
"name": "Vuiteboeuf"
},
{
"name": "Vulliens"
},
{
"name": "Vullierens"
},
{
"name": "Vully-les-Lacs"
},
{
"name": "Yens"
},
{
"name": "Yverdon-les-Bains"
},
{
"name": "Yvonand"
},
{
"name": "Yvorne"
}
]
},
"fallbackLabel": "Merci de le spécifier s'il ne figure pas dans la liste"
}
This component makes use of the datalist
element, which, in concert with the list
attribute, enables native input suggestions in the browser (a.k.a. predictive typing). As Figure 3.7 shows, browsers that don’t support datalist
will see the label
, the select
, the text “If other, please specify,” and the text field; browsers that support datalist
will see the label
and the text field only because the datalist
element is allowed to contain only option
elements (which it cleverly plucks from within the select
).
Two interpretations of the same markup: a browser that understands ‘datalist’ displays one thing (above) and a browser that doesn’t displays something else (below).