-1

From : https://github.com/sweetalert2/sweetalert2/issues/226

$(".swal2-confirm").attr('disabled', 'disabled'); 

works fine... but after a few checks, how do I programmatically enable it?

I tried $(".swal2-confirm").attr('enabled', 'enabled'); and that doesn't work. How do I programmatically enable it again?

Thanks

Lelio Faieta
  • 5,913
  • 6
  • 34
  • 57
Rajan
  • 25
  • 4
  • Does this answer your question? [Disable/enable an input with jQuery?](https://stackoverflow.com/questions/1414365/disable-enable-an-input-with-jquery) – freedomn-m Mar 01 '21 at 12:41
  • And a few *thousand* more... https://stackoverflow.com/search?q=%5Bjquery%5D+remove+disabled – freedomn-m Mar 01 '21 at 12:41

1 Answers1

4

Try this:

$(".swal2-confirm").removeAttr('disabled');
Arib Yousuf
  • 766
  • 1
  • 5
  • 12