Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
La etiqueta HTML <datalist> provoca un desbordamiento en mi documento html

Tengo una etiqueta de lista de datos que contiene algunos datos mediante el uso de etiquetas de opción. Sin embargo, los datos son realmente largos y las opciones están causando problemas de altura en mi página. Por favor ayuda.

Etiqueta de lista de datos

CÓDIGO HTML

 <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>

CÓDIGO JAVASCRIPT

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!