sweetAlert 2 with parameter delivery

0

Good I have this function of confirmation to delete a record as I can do it for at the moment of confirming to send a parameter of the form towards another php file to proceed to eliminate the registry obviously with ajax. Greetings

 function mensajeEliminar() {
swal({
    title: "¿Esta Seguro ?",
   text: "¿Desea eliminar este usuario?",
   icon: "warning",
    dangerMode : true,
    buttons : ["Cancelar","Aceptar"]
}).then((confirmacion)=>{
    if(confirmacion)
        swal("Exito","Has eliminado el registro","success");
    else
        ;
});

}

    
asked by Felipe Larraguibel 08.11.2018 в 18:48
source

0 answers