jquery-dirty

jquery-dirty JS library on GitHub jquery-dirty JS library on npm Download jquery-dirty JS library

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

Version 1.1.2 License ISC
jquery-dirty has no homepage
jquery-dirty JS library on GitHub
jquery-dirty JS library on npm
Download jquery-dirty JS library
Keywords
jquerypluginformdirty

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