@osimatic/helpers-js 1.0.74 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/form_helper.js +5 -0
- package/package.json +1 -1
package/form_helper.js
CHANGED
|
@@ -22,6 +22,11 @@ class FormHelper {
|
|
|
22
22
|
return form.find('select[name="'+selectName+'"] option:not([disabled])').length;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
static reset(form) {
|
|
26
|
+
form.find('[name]').each((idx, el) => $(el).val(''));
|
|
27
|
+
return form;
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
static getFormData(form) {
|
|
26
31
|
// var formElement = document.getElementById("myFormElement");
|
|
27
32
|
return new FormData(form[0]);
|