Jquery form validator does not work -


this question has answer here:

i using site http://www.formvalidator.net/index.html test out live form validation. problem having codes not working @ all.

here html page

<!doctype html>  <html>   <head>    <title>title of document</title>    </head>    <body>      <form action="" method="post">        <p>          user name (4 characters minimum, alphanumeric characters):          <input data-validation="length alphanumeric" data-validation-length="min4">        </p>        <p>          year (yyyy-mm-dd):          <input data-validation="date" data-validation-format="yyyy-mm-dd">        </p>        <p>          website:          <input data-validation="url">        </p>        <p>          <input type="submit">        </p>      </form>      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>      <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>      <script>        $.validate({          lang: 'es'        });      </script>    </body>  </html>

the problem not linking scripts correctly omitting http:// or https:// it's important if running in localhost.

i tested , it's working

<!doctype html> <html>     <head>     <title>title of document</title>     </head>      <body>         <form action="" method="post">           <p>             user name (4 characters minimum, alphanumeric characters):             <input data-validation="length alphanumeric" data-validation-length="min4">           </p>           <p>             year (yyyy-mm-dd):             <input data-validation="date" data-validation-format="yyyy-mm-dd">           </p>           <p>             website:             <input data-validation="url">           </p>           <p>             <input type="submit">           </p>         </form>         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>         <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>         <script>           $.validate({             lang: 'es'           });         </script>     </body>  </html> 

Comments