Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
TrackChanges enables to easily and unobtrusively add watches on forms and warn a user of unsaved changes on window.unload
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Makefile
README.md
composer.json
demo.html

README.md

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/

Something went wrong with that request. Please try again.