File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,18 @@ The validation function takes these five arguments:
200200
201201## Creating a custom module
202202
203- A "module" is basically a javascript file containing one or more calls to [ $.formUtils.addValidator()] ( #writing-a-custom-validator ) . The module file
204- should either have the file extension * .js * (as an ordinary javascript file) or * .dev.js * .
203+ A "module" is basically a javascript file containing one or more calls to [ $.formUtils.addValidator()] ( #writing-a-custom-validator ) .
204+ The module file must be placed in the same directory as ` jquery.form-validator.min.js ` if you want it to load automatically via the setup function .
205205
206- Using the file extension ** .dev.js** will tell * $.formUtils.loadModules* to always append a timestamp to the end of the
207- URL, so that the browser never caches the file. You should of course never use * .dev.js* on a production website.
206+ You can use the method ` $.formUtils.loadModules ` if you want to load the module from a custom path.
207+
208+ ``` js
209+ $ .formUtils .loadModule (' customModule otherCustomModule' , ' my/custom/path' , function () {
210+ // Setup validation once my custom modules finished loading
211+ $ .validate (... );
212+ });
213+
214+ ```
208215
209216### Loading your module ###
210217
You can’t perform that action at this time.
0 commit comments