I\'m using jquery $.post when submitting a form. I want to disable the button for like 5 seconds after it has been clicked to avoid multiple submission of the form.
In extension of @Teneff answer if there is multiple submit button in the form and you want the name of button at server side.