jQuery: Form changed warning « Mister Dai
The majority of us has had a moment where we’ve been filling out a web page form, been distracted and then left the page without submitting, accidentally clicked a link and navigated away or even had no input focused and hit backspace. Wouldn’t it have been nice to get a little warning saying “Hey, you’ve put changed this form data. You sure you want leave this page and lose it all?”. Here’s my effort using jQuery and trying to allow for multiple forms on a single page.