The main purpose of this plugin is to prevent a user from submitted a form multiple times if they double click the submit button.
When a form is submitted that has been initalized with this plugin, all buttons and inputs with type submit will be disabled. Other ways of submitting the form such as hitting enter in a text field are also blocked. After the duration, default is 4000 milliseconds, the form is reactivated.
The following demo forms are set to preventDefault for the purposes of this demo.