Use the jQuery script below. Make sure you put the script after the closing <form> tag.
<script>
jQuery(function() {
$("form").submit(function() {
$(this).submit(function() {
return false;
});
return true;
});
});
jQuery('form').submit(function(){
$(this).find(':submit').attr( 'disabled','disabled' );
});
$("form").submit(function() {
$(this).submit(function() {
return false;
});
return true;
});
});
jQuery('form').submit(function(){
$(this).find(':submit').attr( 'disabled','disabled' );
});
</script>
Leave a comment