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'
})
821 questions
-1
votes
1 answer

Set a value to HTML select while using Ajax and SweetAlert2

I am building a form using SweetAlert2 + Ajax, but I have a problem with the
-1
votes
1 answer

Vue.use(plugin) causing error: Vue is a constructor and should be called with the `new` keywor

Plugin involved - https://www.npmjs.com/package/sweetalert Code in main.js import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap-vue/dist/bootstrap-vue.css'; import BootstrapVue from 'bootstrap-vue'; import Vue from 'vue'; import Vuetify…
Darren Cook
  • 115
  • 1
  • 2
  • 12
-1
votes
2 answers

Delete confirmation with Sweetalert2 in Vue js

I'm trying to make a sweetalert when the user clicks the delete button it will trigger a sweetalert and when the user clicks Yes, Delete it! it should make an axois request to delete the status. When the user clicks on Yes, Delete it! the sweetalert…
Yosef
  • 442
  • 1
  • 7
  • 26
1 2 3
54
55