I have a form in a Java Spring application with the following Event Handler of the Submit Button:
$('#submit').click(function (e) {
e.preventDefault();
if ($('#form').valid()) {
$('#submit_container').hide();
$('#loading_container').show();
$("#form").submit();
}else{
...
}
});
As you can see I am hiding the Div containing the submit button once clicked. But unfortunately I am receiving double POST requests (in the exact same second) of the form every few days.
How is that possible? I don't think it's disabled Javascript because the requests are happening on the exact same time.