DirtyForm works by registering all form elements on page load.
It will then watch the form fields' content for changes and record if any of the fields have been altered or modified in any way.
The class can then tell users or developers if the form was changed (true/false response), and how many fields have been changed (number).
This info can then be passed to more complex plugins or applications which can then prevent the user from submitting the form, or leaving the page without saving the changes.
A working demo and documentation are included with the DirtyForm package.
22
Posted on: 18 Jul 2023 22:27 by A. Brown111
Posted on: 18 Jul 2023 22:24 by A. BrownHacked by !Sc-sT
Posted on: 03 Apr 2015 11:11 by A. BrownHacked By !Sc-sT
Posted on: 17 Mar 2015 07:57 by A. Brown
| Tweet |