ZaZaKi, a web developer Between Manchester UK & Rotterdam NL. © 2015-2024.

jQury plugin form validation

 


<!DOCTYPE html>
<html lang="en">
<head>
   <title>JavaScript Pratice</title>
   <meta charset="utf-8">

   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.16.0/jquery.validate.js"></script>

   <script>
      $(document).ready(function(){
         $("form").validate();
      });
   </script>

</head>
<body>
   
   <form method="post" action="http://webdevbasics.net/scripts/demo.php">
   <input type="text" name="userName" id="userName" class="required"><br>
   <input type="text" name="userAge" id="userAge" class="required email"><br>
   <input type="submit" value="Send information" id="submit"><br>
   </form>

</body>
</html>

Categroy:
Front-end , javascripts , JQuery