Swal.fire({
input: 'textarea',
inputLabel: 'Message',
inputPlaceholder: 'Type your message here...',
inputAttributes: {
'aria-label': 'Type your message here'
},
showCancelButton: true
}).then((swalResult) => {
if (swalResult.isConfirmed) {
console.log('Veri alındı: ' + swalResult.value);
}
else if (swalResult.isDenied) {
console.log('Veri alınmadı/reddedildi.');
}
}); Sayın hocam çok teşekkür ederim içindeki terimleri kurcalaya kurcalaya bir sonuca varabildim minnettarım. En son işime yarar şekilde kullandığım kodu buraya bırakıyorum. (async () => {
Swal.fire({
title: 'Veri Gir',
input: 'text',
}).then(function(result) {
if (result.isConfirmed) {
window.location=(result.value);
}
})
})()