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

234
Views
Deshabilitar hacer clic hasta que la página se cargue por completo

Estoy tratando de deshabilitar el clic en el botón en la página antes de que la página se cargue por completo. Probé el siguiente código, que debería activar el clic para un elemento en particular cuando se carga la página:

 <script> $(document).ready(function() { $("div#wc-proceed-to-checkout").click(function () { launchAction(); }); }); </script>

Solución alternativa: deshabilite el clic para toda la página hasta que la página se cargue por completo.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Puede intentar usar el atributo deshabilitado en el botón para deshabilitarlo. https://www.w3schools.com/tags/att_button_disabled.asp y una vez que se carga la página, elimine el atributo usando el removeAttr('disabled') method

about 4 years ago · Juan Pablo Isaza Report

0

Tu guion:

 <script> $(document).ready(function() { $("div#wc-proceed-to-checkout").disable(false); $("div#wc-proceed-to-checkout").click(function () { launchAction(); }); }); </script>

El elemento HTML debe tener inhabilitado verdadero, o puede

 <script> document.getElementById("wc-proceed-to-checkout").disable = true; </script>
about 4 years ago · Juan Pablo Isaza Report
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!