jQuery: Form changed warning

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.

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 10 + 9 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)