Add the disable part in the submit event.
$(document).ready(function () {
$("#yourFormId").submit(function () {
$(".submitBtn").attr("disabled", true);
return true;
});
});
More Related Contents:
- jQuery AJAX submit form
- Can I make a not submit a form?
- Get the contents of a table row with a button click
- Dynamically create and submit form
- jQuery – Increase the value of a counter when a button is clicked
- Property ‘submit’ of object # is not a function
- Difference between .click() and actually clicking a button? (javascript/jQuery)
- Is there a better jQuery solution to this.form.submit();?
- Form submit button will not submit when name of button is “submit” [duplicate]
- Get the longest text in HTML document using Jquery or javascript
- Hide/Show image on one click [closed]
- How to move an element into another element?
- Convert blob to base64
- jquery (or pure js) simulate enter key pressed for testing
- Format date to MM/dd/yyyy in JavaScript [duplicate]
- Check if an array is empty or exists
- jQuery: Get selected element tag name
- jQuery drop down menu closing by clicking outside
- jQuery pitfalls to avoid [closed]
- how to wait for element visibility in phantomjs
- jQuery post request (not AJAX)
- Appended new row is not behaving like previous one (row)
- Change text color based on brightness of the covered background area?
- HTML5 audio playlist – how to play a second audio file after the first has ended?
- Is it possible to do mathematics inside CSS?
- Safari with audio tag not working
- How to send secure AJAX requests with PHP and jQuery
- moment.js isValid function not working properly
- Set value to currency in
- Checking if a URL is broken in Javascript