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

220
Views
JQuery slice () cargar elementos después de hacer clic en el botón Atrás en el navegador

Uso la función slice() para cargar más artículos en el catálogo. Cuando hago clic en el detalle de un artículo y quiero volver a la página anterior haciendo clic en el botón Atrás en el navegador, solo se muestran los primeros 15 artículos. ¿Es posible que la página se cargue en la última posición y el usuario no tenga que desplazarse por los elementos nuevamente?

 $(function () { $(".content-inner-wrapper").slice(0, 15).show(); $("#loadMore").on('click', function (e) { e.preventDefault(); $(".content-inner-wrapper:hidden").slice(0, 15).slideDown(); if ($(".content-inner-wrapper:hidden").length == 0) { $("#loadMore").fadeOut('slow'); } $('html,body').animate({ scrollTop: $(this).offset().top }, 1500); }); });

Gracias por el consejo.

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!