You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Callback function invoked before form serialization. Provides an opportunity to manipulate the form before its values are retrieved. Returning `false` from the callback will prevent the form from being submitted. The callback is invoked with two arguments: the jQuery wrapped form object and the options object.
Callback function invoked before form submission. Returning `false` from the callback will prevent the form from being submitted. The callback is invoked with three arguments: the form data in array format, the jQuery wrapped form object, and the options object.
99
99
100
100
````javascript
101
-
beforeSubmit:function(arr, $form, options) {
101
+
beforeSubmit(arr, $form, options) {
102
102
// form data array is an array of objects with name and value properties
Callback function invoked before form events unbind and bind again. Provides an opportunity to manipulate the form before events will be remounted. The callback is invoked with two arguments: the jQuery wrapped form object and the options object.
Callback function invoked before processing fields. This provides a way to filter elements.
119
119
120
120
````javascript
121
-
filtering:function(el, index) {
121
+
filtering(el, index) {
122
122
if ( !$(el).hasClass('ignore') ) {
123
123
return el;
124
124
}
@@ -216,14 +216,14 @@ URL to which the form data will be submitted.
216
216
Serializes the form into a query string. This method will return a string in the format: `name1=value1&name2=value2`
217
217
218
218
````javascript
219
-
var queryString =$('#myFormId').formSerialize();
219
+
constqueryString=$('#myFormId').formSerialize();
220
220
````
221
221
222
222
### fieldSerialize
223
223
Serializes field elements into a query string. This is handy when you need to serialize only part of a form. This method will return a string in the format: `name1=value1&name2=value2`
224
224
225
225
````javascript
226
-
var queryString =$('#myFormId .specialFields').fieldSerialize();
0 commit comments