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

114
Views
Intentar reemplazar el contenido existente del carrusel con contenido nuevo cuando se vuelve a hacer clic en el botón

Tengo 4 carruseles que muestran información de texto de una API cuando el usuario ingresa contenido en una barra de búsqueda y hace clic en el botón de búsqueda. Cuando el usuario repite el proceso, ¿hay alguna manera de eliminar la información de texto existente y reemplazarla con la nueva información que obtiene la API?

 var getMovie = function (event) { // gets button element var inputEl = document.querySelector(".validate"); // retrieves button element text data var movie = inputEl.value.trim(); movie = movie.toUpperCase(); // calls retrieveData function retrieveData(movie); // clear input field inputEl.value = ""; }; var displayMovie = function (data2, movie, data) { saveMovie(movie); mainContentEl.style.display = "block"; var reviewData = data; // get movie data var movieData = data2; // calls carousel builder functions // scale the headers of the cards down // enlarge the content font slightly to fill the card carouselItemOne(movieData, movie); carouselItemTwo(movieData, movie); carouselItemThree(reviewData, movie); carouselItemFour(movieData, movie); };
about 4 years ago · Santiago Gelvez
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!