Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

TrackChanges enables to easily and unobtrusively add watches on forms and warn a user of unsaved changes on window.unload

Notifications You must be signed in to change notification settings

lavoiesl/jQuery-TrackChanges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery TrackChanges

Author

Sébastien Lavoie (sebastien@lavoie.sl)

Description

TrackChanges enables to easily and unobtrusively add watches on forms, detect changes and revert to original value

Example

$('.myform :input').trackChanges({
    trackingClass: 'track-changes', // Class added on watched fields
    changedClass: 'changed', // Class added when field is changed
    events: 'change blur' // Events to bind for watching changes
});

Prerequisites

  • jQuery, should work with any version but tested with 1.7

Live demo

Here is a live demo, please fork it to report bugs. http://jsfiddle.net/547cM/3/

About

TrackChanges enables to easily and unobtrusively add watches on forms and warn a user of unsaved changes on window.unload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published