Skip to content

Commit 43319e1

Browse files
committed
Update README.md
1 parent cf24f01 commit 43319e1

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -206,30 +206,14 @@ The module file must be placed in the same directory as `jquery.form-validator.m
206206
You 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

234218
The second argument is the path where the module files are located. This argument is optional, if not given
235219
the module files has to be located in the same directory as the core modules shipped together with this jquery plugin

0 commit comments

Comments
 (0)