jQuery Plugin To Call A Function On Change In Form Elements - Modify

jQuery Plugin To Call A Function On Change In Form Elements - Modify
File Size: 6.71 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Modify is a very small jQuery plugin that executes a function when a form element has been changed by user.

Basic usage:

1. Load the jQuery Modify plugin after jQuery JavaScript library but before the closing body tag.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.modify.min.js"></script>

2. Fires an event on every change in form element.

$(window.document).on("modify", ":input", function(event, data){
  // do something
});

This awesome jQuery plugin is developed by shimataro. For more Advanced Usages, please check the demo page or visit the official website.