Skip to content

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

Notifications You must be signed in to change notification settings

eagostini/jquery-dirty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages