- Description:
Simple method to check for changes to a form between two points in time.
- Source:
- Since:
- 3.1
- Copyright:
- 2016 Damyon Wiese
- 2016 Damyon Wiese
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Simple method to check for changes to a form between two points in time.
Methods
(inner) checkFormForChanges(selector) → {Boolean}
- Description:
Compare the current values in the form to the previously saved state.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | The selector for the form element. |
Returns:
True if there are changes to the form data.
- Type
- Boolean
(inner) saveFormState(selector)
- Description:
Save the values in the form to a data attribute so they can be compared later for changes.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
selector |
String | The selector for the form element. |