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

178
Views
Códigos nulos del rastreador Covid 19. country_list_element.innerHTML += `<ul id='${ul_list_id}'></ul>`;

Por vergonzoso que sea admitir que soy un principiante en programación y que estaba copiando un código en un tutorial de YouTube para mi proyecto de sitio web, por alguna extraña razón, el código parece ser nulo y la lista de países en el cuadro de búsqueda no lo hace. show... no tengo la menor idea de como configurarlo y ya casi vence, necesito ayuda por favor :(

 function createCountryList(){ const num_countries = country_list.length; let i = 0, ul_list_id; country_list.forEach( (country, index) => { if( index % Math.ceil(num_countries/num_of_ul_lists) == 0){ ul_list_id = `list-${i}`; country_list_element.innerHTML += `<ul id='${ul_list_id}'></ul>`; i++; } document.getElementById(`${ul_list_id}`).innerHTML += ` <li onclick="fetchData('${country.name}')" id="${country.name}"> ${country.name} </li> `; }) } let num_of_ul_lists = 3; createCountryList(); // SHOW/HIDE THE COUTRY LIST ON CLICK EVENT chang_country_btn.addEventListener("click", function(){ input.value = ""; resetCountryList(); search_country_element.classList.toggle("hide"); search_country_element.classList.add("fadeIn"); }); close_list_btn.addEventListener("click", function(){ search_country_element.classList.toggle("hide"); }); country_list_element.addEventListener("click", function(){ search_country_element.classList.toggle("hide"); }); // COUNTRY FILTER /*input event fires up whenever the value of the input changes */ input.addEventListener("input", function(){ let value = input.value.toUpperCasse(); country_list.forEach( country => { if( country.name.toUpperCase().startsWith(value)){ document.getElementById(country.name).classList.remove("hide"); }else{ document.getElementById(country.name).classList.add("hide"); } }) }) // RESET COUNTRY LIST (SHOW ALL THE COUNTRIES ) function resetCountryList(){ country_list.forEach( country => { document.getElementById(country.name).classList.remove("hide"); }) }```
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!