I am experiencing something very strange. When a form is submitted, I am disabling the submit button with the following code:
$(btn).addClass('sbmt_disable').attr('disabled', 'disabled'); However, the effect it creates is it appears to just reload the page, and the fields are empty. Is it not possible to submit a form, if the submit button is disabled then? If so, what is the alternative? The desired action is to prevent users from clicking on the form more than once.
$('#contact_btn').click(function(e){....$('#contact_form').submit(function(e){...setTimeout(()=>{foo.disabled=true},1)or use pointer events in css to disable it.