File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -206,30 +206,14 @@ The module file must be placed in the same directory as `jquery.form-validator.m
206
206
You can use the method ` $.formUtils.loadModules ` if you want to load the module from a custom path.
207
207
208
208
``` js
209
- $ .formUtils .loadModule (' customModule otherCustomModule' , ' my/custom/path ' , function () {
210
- // Setup validation once my custom modules finished loading
211
- $ . validate ( ... );
209
+ $ .formUtils .loadModules (' customModule otherCustomModule' , ' js/validation-modules/ ' );
210
+ $ . validate ({
211
+ modules : ' security, date '
212
212
});
213
-
214
- ```
215
-
216
- ### Loading your module ###
217
-
218
- ``` html
219
- <html >
220
- <head >
221
- <script src =" js/form-validator/jquery.form-validator.min.js" ></script >
222
- <script >
223
- $ .formUtils .loadModules (' mymodule.dev' , ' js/validation-modules/' );
224
- </script >
225
- </head >
226
- </html >
227
- ...
228
213
```
229
214
230
- The first argument of $.formUtils.loadModules is a comma separated string with names of module files, without
231
- file extension (add .dev if the file name is for example mymodule.dev.js, this will insure that the browser never
232
- caches the javascript).
215
+ The first argument of ` $.formUtils.loadModules ` is a comma separated string with names of module files, without
216
+ file extension.
233
217
234
218
The second argument is the path where the module files are located. This argument is optional, if not given
235
219
the module files has to be located in the same directory as the core modules shipped together with this jquery plugin
You can’t perform that action at this time.
0 commit comments