Skip to content

Commit 0dea224

Browse files
committed
readme wip...
1 parent e325861 commit 0dea224

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ The validation function takes these five arguments:
126126

127127
## Creating a custom module
128128

129-
A "module" is basically a script file containing one or more calls to [$.formUtils.addValidator()](#writing-a-custom-validator). The module file
130-
should either have the extension *.js* (as an ordinary javascript file) or *.dev.js*.
129+
A "module" is basically a javascript file containing one or more calls to [$.formUtils.addValidator()](#writing-a-custom-validator). The module file
130+
should either have the file extension *.js* (as an ordinary javascript file) or *.dev.js*.
131131

132-
Using the extension **.dev.js** will make the module loading function to always append a timestamp to the end of the
132+
Using the file extension **.dev.js** will tell *$.formUtils.loadModules* to always append a timestamp to the end of the
133133
URL, so that the browser never caches the file. You should of course never use *.dev.js* on a production website.
134134

135135
### Loading your module ###
136136

137-
```
137+
```html
138138
<html>
139139
<head>
140140
<script src="js/formvalidator/jquery.formvalidator.min.js"></script>
@@ -147,7 +147,7 @@ URL, so that the browser never caches the file. You should of course never use *
147147
```
148148

149149
The first argument of $.formUtils.loadModules is a comma separated string with names of module files, without
150-
extension (add .dev if the file name is for example mymodule.dev.js, this will insure that the browser never
150+
file extension (add .dev if the file name is for example mymodule.dev.js, this will insure that the browser never
151151
caches the javascript).
152152

153153
The second argument is the path where the module files is located. This argument is optional, if not given
@@ -166,7 +166,6 @@ It is possible to show that the value of an input is incorrect immediately when
166166
</p>
167167
...
168168
</form>
169-
170169
<script>
171170
$('#my_form').validateOnBlur();
172171
</script>
@@ -178,12 +177,11 @@ It is possible to display help information for each input. The information will
178177
```html
179178
<form action="" onsubmit="return $(this).validate();" id="my_form">
180179
<p>
181-
<strong>Why not:</strong>
182-
<textarea name="why" data-help="Please give us some more information" data-validation="required"></textarea>
180+
<strong>Why not?</strong>
181+
<textarea data-help="Please give us some more information" data-validation="required"></textarea>
183182
</p>
184183
...
185184
</form>
186-
187185
<script>
188186
$('#my_form').showHelpOnFocus();
189187
</script>

0 commit comments

Comments
 (0)