Oh-autoVal Version 1.0.14 Developed by Amal K Jose Published on 18th October, 2017
Oh-autoVal is a free Form validation API based on jQuery. It is developed by Amal K Jose as part of project work. The first version of Oh-autoVal v1.0.0 was released on 17th October, 2017. Now it is in a developing stage. And so, there may have more frequent updates.
Steps to implement API to your forms
-
Include following lines to your website.
<-- Adding oh-autoVal css style -->
<link rel="stylesheet" type="text/css" href="https://rawgit.com/ozonhub/oh-autoVal/master/css/oh-autoval-style.css">
<!-- Adding jQuery script. It must be before other script files -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" > </script >
<!-- Adding oh-autoVal script file -->
<script src="https://rawgit.com/ozonhub/oh-autoVal/master/js/oh-autoval-script.js" > </script > -
Add a Form with onsubmit="return" and class="oh-autoval-form".
Example:
<form action="destignaion.php" class="oh-autoval-form" method="post" onsubmit="return">
<!--Form elements -->
</form> -
Add all required elements with class="av-format" and av-message="Error message".
Example:
<input type="text" name="email" class="av-email" av-message="Invalid email address"/> -
Add a submit button on your form.
Example:
<input type="submit" name="submit" value="Submit"/>
Visit http://www.oh-autoval.ml