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

204
Views
can't use sweet-alert's, ".confirm" button to trigger a POST request

I am using SweetAlert as a warning when deleting a div (card) from the UI.

This is the code generated by SweetAlert: enter image description here

When I press the button having class .confirm and test = "Yes, Delete". I want to send an AJAX POST request to delete the card. The problem is I can select it with JQUERY

Javascript Code:

    $(document).ready(function(){
        $(".sweet-alert").on("click", ".sa-confirm-button-container button", function () {
            var requiedClass = sessionStorage.getItem("class");
            console.log(requiedClass+ "sweetalert")
            console.log(sessionStorage.getItem("class") + " -- sessionStorage getItem")
        })
    })
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!