-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
  • 6,457
  • 7
  • 40
  • 74
Rajan
  • 137
  • 9
  • 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

5

Try this:

$(".swal2-confirm").removeAttr('disabled');
Arib Yousuf
  • 1,230
  • 1
  • 8
  • 12