@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.
Files changed (2) hide show
  1. package/form_helper.js +5 -0
  2. 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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"