-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6265972
commit 7a68416
Showing
4 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Octavalidate - JS V1.2.2 | ||
# Octavalidate - JS V1.2.3 | ||
|
||
This JavaScript library helps to validate your frontend (HTML) forms using validation rules, sophisticated regular expressions and form input attributes. | ||
|
||
|
@@ -25,7 +25,7 @@ Visit the [DOCUMENTATION](https://octagon-simon.github.io/projects/octavalidate/ | |
### CDN | ||
Place this script before the <code></head></code> tag. | ||
```html | ||
<script src="https://unpkg.com/[email protected].2/native/validate.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/native/validate.js"></script> | ||
``` | ||
|
||
### NPM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -434,7 +434,7 @@ | |
</style> | ||
|
||
<!-- CDN | ||
<script src="https://unpkg.com/[email protected].2/native/validate.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/native/validate.js"></script> | ||
--> | ||
|
||
<script src="src/validate.js"></script> | ||
|
@@ -567,13 +567,16 @@ <h3 class="text-white mb-20">CONNECT WITH ME</h3> | |
data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#ffffff" | ||
data-coffee-color="#FFDD00"></script> | ||
</div> | ||
<p class="text-gray mt-20">Octavalidate @ 1.2.2 🚀 Since January 2022 </p> | ||
<p class="text-gray mt-20">Octavalidate @ 1.2.3 🚀 Since January 2022 </p> | ||
</footer> | ||
|
||
</html> | ||
<script> | ||
//create instance of class | ||
let myForm = new octaValidate('form_demo'); | ||
//create instance of class null, NaN,undefined,admin,empty | ||
let myForm = new octaValidate('form_demo', { | ||
strictMode : true, | ||
strictWords : ["null", "empty", "undefined", "NaN"] | ||
}); | ||
//add custom rule | ||
myForm.customRule("PASS", /^12345+$/, "Please enter 12345"); | ||
//define callback | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters