Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jish/jquery_disable_with

Disable elements to prevent form resubmission
https://github.com/jish/jquery_disable_with

Last synced: 4 days ago
JSON representation

Disable elements to prevent form resubmission

Awesome Lists containing this project

README

        

# 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.

Or dynamically disable a jQuery object.

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