Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cakebaker/jquery-disableifempty
A simple jQuery plugin to disable a button if an observed element is empty
https://github.com/cakebaker/jquery-disableifempty
Last synced: about 2 months ago
JSON representation
A simple jQuery plugin to disable a button if an observed element is empty
- Host: GitHub
- URL: https://github.com/cakebaker/jquery-disableifempty
- Owner: cakebaker
- Created: 2010-04-05T08:29:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-04-05T08:45:24.000Z (over 14 years ago)
- Last Synced: 2023-04-12T04:03:27.043Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
A simple jQuery plugin allowing you to disable elements when an observed element becomes empty.
The following example keeps the login button disabled as long as the OpenID field is empty:
$('#login_submit').disableIfEmpty('#openid_identifier');