Prevent users from losing data when editing forms:
Dirty Forms is a flexible jQuery plugin to help prevent users from losing data when editing forms.Dirty Forms will alert a user when they attempt to leave a page without submitting a form they have entered data into.
Prerequisites
Must have jQuery Library version 1.4.2 or higher.
download JQuery Dirtyforms.js file here...
easy...
Dirty Forms
Continue Reading →