🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

snbutton is a super small, cross-browser jQuery plugin that disables the submit button (and changes its content) whenever an input field is empty.


Documentation

snbutton

A tiny jQuery plugin that could control the button's state

It is a very simple jquery plugin that disables button when some input filed is empty.

Usage

Step.1 Download

  • Using bower to install it. bower install snbutton

  • Download from github.

Step.2 Load Script

Load the script file: snbutton.js in your application:

<script type="text/javascript" src="bower_components/snbutton/snbutton.js"></script>

Step.3 Code

<input id="input-700" /> <button id="submit-button" data-snnode="input-700">Submit</button> <script> 	SNButton.init("submit-button"); </script>

You May Also Like