Disable elements to prevent form resubmission
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
spec
vendor
.gitignore
README.md
jquery.disable_with.js

README.md

jQuery disable with

A jQuery plugin to disable buttons when you click on them. This is to prevent forms from being submitted multiple times.

Usage

Just add a data-disable-with attribute to your button.

<input type="button" data-disable-with="submitting...">

Or dynamically disable a jQuery object.

$('#button').disableWith('submitting...');