Questions tagged [sweetalert2]

A responsive, customizable, accessible (WAI-ARIA) replacement for JavaScript's popup boxes with zero dependencies. Use this tag for questions that involve using this library.

A JavaScript library for generating popup windows. It can be combined with jQuery and it returns promises.

SweetAlert2 page

SweetAlert2 CDN


Stack Overflow Quick Start Snippet

html

<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9.17.1/dist/sweetalert2.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@9.17.1/dist/sweetalert2.css">

javascript

Swal.fire({
  title: 'Success!',
  text: 'Swal ready',
  icon: 'success',
  confirmButtonText: 'Cool'
})
649 questions
-2
votes
3 answers

Sweet Alert: Ajax call help needed

I want to return an error message using Sweet alert going through my Laravel controller. Controller public function update(TenderRequest $request,$id) { $tender = TenderMaster::findOrFail($id); if($request->extend_date <…
Vivek kalanka
  • 43
  • 1
  • 9
-2
votes
1 answer

Delete a file with php and sweet alert 2

i have this script, to show alla images in a folder and also i have a delete button/link under all the thumbnails. I click this delete button/link to display a Sweet alert 2 confirmation box, and if i click OK(Ja, Radera!) the unlink.php file is…
Patrik Idén
  • 355
  • 2
  • 12
-2
votes
1 answer

Get email value from SweetAlert2 to PHP?

Good day, what's the best way to implement PHP into Javscript, I need to do some coding stuff after email is entered swal({ type: "success", title: "Congrats!", text: "Please enter your PayPal email address.", input: "email", …
OkayDaddy
  • 11
  • 2
-2
votes
1 answer

How to hidden the border of button in sweetalert2

The border of button appears automatically. How to close it so that it will never appear? Thanks. The button in sweetalert2
1 2 3
43
44