I’ve been trying to implement the jquery.safetynet plug-in but I’ve been having difficulties getting it to work with check boxes and across multiple browsers. (Read: It must be ie6 compatible)
I’ve decided to give up on this implementation even though I really like it.
Do you have a good recommendation for a dirty field check and prompt for:
navigate away, refresh, browser close?
Thanks!
use window.onbeforeunload to be notified when the page unloads. To check if anything is dirty within a form, you can query for all input, selects and see if the values are different than when the page was loaded.
I copy pasted this from the web to check if any values in a form are modified