codedance / jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors html forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
508 stars 145 forks source link

Add settings option to initialise the form as dirty #122

Open MattHealy opened 7 years ago

MattHealy commented 7 years ago

I had a need to mark a form as dirty from initialisation (form is part of a multiple page data entry process). This PR adds a setting option to initialise the form as either clean (default) or dirty.