Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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');