Skip to content

Commit

Permalink
Modify typo. #19
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 19, 2019
1 parent 190d820 commit bb7c395
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ var a = new validator('example_form',[
<input type="email" name="email" id="email" class="form-control" placeholder="Email">
</div>
<div class="form-group">
<label for="passworld">密码:</label>
<input type="passworld" name="passworld" id="passworld" class="form-control" placeholder="输入密码">
<label for="password">密码:</label>
<input type="password" name="password" id="password" class="form-control" placeholder="输入密码">
</div>

<div class="form-group">
<label for="repassworld">确认密码:</label>
<input type="repassworld" name="repassworld" id="repassworld" class="form-control" placeholder="输入密码">
<label for="repassword">确认密码:</label>
<input type="repassword" name="repassword" id="repassword" class="form-control" placeholder="输入密码">
</div>
</form>
<script type="text/javascript">
Expand All @@ -91,13 +91,13 @@ var a = new validator('example_form',[
rules: 'is_emil|max_length(12)'
// rules: 'valid_email|required|max_length(12)|min_length(2)'
},{
name:"passworld",
name:"password",
display:"必填",
rules: 'required'
},{
name:"repassworld",
name:"repassword",
display:"密码不一致",
rules: 'same(passworld)'
rules: 'same(password)'
}
],function(obj,evt){
if(obj.errors){
Expand Down
14 changes: 7 additions & 7 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
</div>

<div class="form-group">
<label for="passworld">密码:</label>
<input type="passworld" name="passworld" id="passworld" class="form-control" placeholder="输入密码">
<label for="password">密码:</label>
<input type="password" name="password" id="password" class="form-control" placeholder="输入密码">
</div>

<div class="form-group">
<label for="repassworld">确认密码:</label>
<input type="repassworld" name="repassworld" id="repassworld" class="form-control" placeholder="输入密码">
<label for="repassword">确认密码:</label>
<input type="repassword" name="repassword" id="repassword" class="form-control" placeholder="输入密码">
</div>

<div class="form-group">
Expand Down Expand Up @@ -74,13 +74,13 @@
display:"复选框不能为空",
rules: 'required'
},{
name:"passworld",
name:"password",
display:"1必填",
rules: 'required'
},{
name:"repassworld",
name:"repassword",
display:"密码不一致",
rules: 'same(passworld)'
rules: 'same(password)'
}
],function(obj,evt){

Expand Down

0 comments on commit bb7c395

Please sign in to comment.