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

195
Views
Sweetalert2 no funciona correctamente en la tabla dinámica

Tengo una tabla que recibe datos de MYSQL y hay una columna en la tabla que activa algunas opciones cuando se hace clic. sin embargo, Sweetalert2 solo funciona en la primera línea de registros. eso es. si por casualidad hay un registro para presentar y el usuario hace clic en el botón de acción, sweetalert2 funciona normalmente, pero si hay más de 1 registro para presentar, sweetalert2 no funciona en las siguientes líneas. ¿qué hice mal?

Lo que hice es lo siguiente:

 <script> var ajuda1 = document.getElementById("aceito"); if(ajuda1){ajuda1.addEventListener("click", exibeMensagem_quando_pendente); function exibeMensagem_quando_pendente(){ Swal.fire({ position: 'center', icon: 'success', title: 'Pedido foi aceito', showConfirmButton: false, timer: 1500 })}};</script> <td> <?php if($row["status"] == "Pendente") : ?> <a href="javascript:setTimeout(()=>{window.location = '<?php echo $baseurl ?>.editstatusorderfor_accepted.php?&id=<?php echo $row['id']; ?>'},1500);"> <button title="Aceitar" id="aceito" class="button_status_aceito"><i class="icon-like"></i></button></a><?php endif ?>
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!