We are using the following jQuery to disable submit buttons in order to prevent double submissions (slow server!).
jQuery(document).ready(function($){
/*SENDE BTN INAKTIV STELLEN*/
$("input[type=submit]").click(function() {
$(this).css({'opacity':'0.5','cursor':'wait'}).attr('disabled','disabled');
});
});
However, how do we fire the script AFTER the browser has validated all fields with the 'required' attribute in our HTML form?