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
206206You can use the method ` $.formUtils.loadModules ` if you want to load the module from a custom path.
207207
208208``` 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 '
212212});
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- ...
228213```
229214
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.
233217
234218The second argument is the path where the module files are located. This argument is optional, if not given
235219the 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