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: 3 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 (about 15 years ago)
- Default Branch: master
- Last Pushed: 2010-04-05T08:45:24.000Z (about 15 years ago)
- Last Synced: 2025-01-08T20:11:33.764Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 5
- Watchers: 3
- 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');