1
Currently, my form sends the same email several times if the user clicks more than once on Ubmit. How do I stop this? I tried with these two variations of Cód, but it didn’t work.
$("#bt-enviar").on('click', function() {
$(this).attr('disabled','true');
$(this).css('cursor', 'default');
});
and
desab=0;
if(desab == 1){
$('#bt-enviar').attr('disabled','true');
$('#bt-enviar').css('cursor', 'default');
}
$("#bt-enviar").on('click', function() {
desab=1;
});
I got it from this Cód:
– Dtag