Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 42 additions & 19 deletions src/demo/index3.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,46 +15,69 @@
<label for="name" style="align-items: baseline">Name</label>
<input type="text" required class="form-control" id="name" name="name" placeholder="Enter Name">
</div>

<br><br><br><br><br><br><br>

<div class="row">
<label for="name">Address1</label>
<input type="text" required class="form-control" id="l_address" name="l_address"
placeholder="Enter address1">

</div>

<br><br><br><br><br><br><br>

<div class="row">
<label for="name">Address2</label>
<input type="text" required class="form-control" id="p_address" name="p_address"
placeholder="Enter Address2">
</div><br><br><br><br><br><br><br><br>
</div>

<br><br><br><br><br><br><br><br>

<div class="row">
<label for="name">Contact Person</label>
<input type="text" required class="form-control" id="contact_person" name="contact_person"
placeholder="Enter Contact Person">
</div><br><br><br><br><br><br><br><br><br>
</div>

<br><br><br><br><br><br><br><br><br>

<label for="name">Phone No 1</label>
<input type="text" required class="form-control" id="contact_no1" name="contact_no1"
placeholder="Enter Phone No">

<div class="row">
<label for="name">Phone No 2 </label>
<input type="text" class="form-control" id="contact_no2" name="contact_no2"
<input type="text" class="form-control" pattern="[0-9.]" id="contact_no2" name="contact_no2"
placeholder="Enter Phone No">
</div><br><br><br><br><br><br><br>
</div>

<br><br><br><br><br><br><br>

<label for="name">Email Address 1</label>
<input type="text" required class="form-control" id="email1" name="email1" placeholder="Enter Email">
<input type="email" required class="form-control" id="email1" name="email1" placeholder="Enter Email">
<div class="row">
<label for="name">Email Address 2</label>
<input type="text" class="form-control" id="email2" name="email2" placeholder="Enter Email">
</div><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>

<br><br><br><br><br><br><br><br><br><br><br><br><br>

<label for="name">Designation</label>
<input type="text" required class="form-control" id="designation" name="designation"
placeholder="Enter Designation">
<div class="row">
<label for="name">Department</label>
<input type="text" required class="form-control" id="department" name="department"
placeholder="Enter Department">
</div><br><br><br><br><br><br><br><br><br><br>
</div>

<br><br><br><br><br><br><br><br><br><br>
</div>
<div>
<label>Min :</label>
<input type="number" required min="2" max="10" minlength="1" maxlength="2" name="rangeTester">
</div>
<br><br><br><br><br><br><br>
<button type="submit" name="btn-save" class="btn btn-default">Submit</button>
Expand All @@ -65,18 +88,18 @@

<script>

// var form = new jsValidator().init({
// form: 'clientAdd',
// forceFilter: true,
// onChange: true,
// message: {
// required: 'This field is required 123 !',
// min: '<br><span style="color: red;">This field is less then the limit [INDEX]</span>',
// max: 'This field is exceeds the limit of [INDEX]',
// password: 'Password doesn\'t match !',
// email: 'Invalid Email found !'
// }
// });
// var form = new jsValidator().init({
// form: 'clientAdd',
// forceFilter: true,
// onChange: true,
// message: {
// required: 'This field is required 123 !',
// min: '<br><span style="color: red;">This field is less then the limit [INDEX]</span>',
// max: 'This field is exceeds the limit of [INDEX]',
// password: 'Password doesn\'t match !',
// email: 'Invalid Email found !'
// }
// });

var form = jsValidator.init({
form: 'clientAdd',
Expand Down
Loading