Sometimes the simplest things are difficult and looking around at the answers for creating a Text area using Sweet Alert is complex. but I found a simple answer!!!
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.28.2/sweetalert2.min.css"> <script src="//cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.28.2/sweetalert2.all.js"></script> swal({ title: 'Input something', input: 'textarea' }).then(function(result) { if (result.value) { swal(result.value) } }) |
If this is not enough try this as it shows a variable that is editable using a text box