jquery-dirty

A very dirty jQuery plugin to tell you if any input in a collection has changed its value.


Keywords
jquery, plugin, form, dirty
License
ISC
Install
npm install jquery-dirty@1.1.1

Contributors

Eduardo Agostini


See all contributors


Documentation

Introduction

Struggling trying to determine if any element in a collection has changed its original value? Then your problems are gone! Once you load this plug-in along with jQuery you can simply do things like this:

$('form').submit(function(event) {
    var that = $(this);

    if (!that.dirty()) {
        event.preventDefault();
    }
});

If it's either not enough or you found any bug in this plug-in, please, let me know creating an issue here. I appreciate your help!

Dependencies