I would like to know how to validate if the agregar
of sweetAlert
button is pressed, in my condition I am handling amounts if the one you want to enter is greater than your% allowed%, let you know that you are exceeding and if choose cantidad maxima
do the following process.
if (parseInt(cantidad) > parseInt(max))
{
swal({
title: "La cantidad es mayor a su cantidad maxima",
text: "¿Seguro que desea agregarlos?",
icon: "warning",
buttons: ["Cancelar", "Agregar"], });
//condicion de validacion boton Agregar SweetAlert
{
//siguiente proceso
}
}