Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

120
Vistas
HTML <datalist> tag causes overflowing in my html document

I have a datalist tag which holds some data by using option tags. However, the data is really long and the options are causing height problem in my page. Please help.

DataList Tag

HTML CODE

<div class="col-md-3">
                                    <label class="definer" for="currency"  style="height: 125px;" >
                                        Which currency would you like to see flight ticket prices in? 
                                    </label>
                                        <input type="search" list="currency" class="f_input"
                                        placeholder="Please select a currency" id="currencyInput" style="text-transform: uppercase;">
                                    <datalist id="currency" class="f_input">
            
                                        
                                    </datalist>
</div>

JAVASCRIPT CODE

xhrCurrencyCodes.addEventListener("readystatechange", function () {
      if (this.readyState === this.DONE) {

            var currencyObj = JSON.parse(this.responseText)
            console.log(currencyObj);

            for (let i = 0; i < currencyObj.Currencies.length; i++) {

                  var myCurrency = document.createElement('option')
                  var myCurrencyList = document.getElementById('currency')

                  myCurrency.value = currencyObj.Currencies[i].Code + " (" + currencyObj.Currencies[i].Symbol + ")"
                  myCurrencyList.append(myCurrency)


                

            }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda