Are-you-sure is simple light-weight dirty forms JQuery Plugin for modern browsers. It helps prevent users from loosing unsaved form changes by prompting the user to save/submit. It’s dependency free and designed for modern browsers… just the features you need and nothing more! See the project page and demo for usage and examples.
jquery plugin to detect when the fields of a form are modified
jQuery plugin that monitors the form fields within the specified form or DOM container for changes, and will apply ‘dirty’ CSS class to the form and/or to DOM elements related to changed form fields (labels, spans, etc.). Provides several configuration options, public functions, and callbacks for customizing plugin behavior.