this is my sweetalert I want to update my database STATUS column when I click this confirm button plz help me thanks
swal({
title: 'Are you sure?',
text: "You won't be able to revert this!",
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#228B22',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, confirm it!'
}).then(function () {
swal(
'Confirmed!',
'success'
)
})