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

179
Views
Cómo usar la alerta dulce en el botón

mensaje como ese

 Swal.fire( 'Good job!', 'You clicked the button!', 'success' )

Cuando hago clic en mi botón, quiero mostrar ese mensaje

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

0

 function alertMsg(){ Swal.fire( 'Good job!', 'You clicked the button!', 'success' ) }
 <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.3.3/dist/sweetalert2.all.min.js"></script> <button onClick="alertMsg()">Button</button>

about 4 years ago · Juan Pablo Isaza Report

0

Hay diferentes formas de lograr esto, no sé si su botón tiene una identificación o clase, puede adjuntar un evento para eso, debe usar el evento al hacer clic. Obtenga más información sobre los eventos aquí.

Este es un ejemplo simple:

 <button onclick="showSwalAlert()">My Button</button> <script> function showSwalAlert(){ Swal.fire( 'Good job!', 'You clicked the button!', 'success' ) } </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!