jquery form validation plugin

Bin ich mit Hilfe von jquery form Validierung zur Validierung meiner form aber ich bin immer der folgende Fehler:

         Uncaught ReferenceError: jQuery is not defined jquery.validate.js:1178
Uncaught TypeError: undefined is not a function bootstrap.js:29
Uncaught ReferenceError: $ is not defined mimi.html:20

hier ist mein code :

<!DOCTYPE HTML>
<html>
 <head>
    <link type = "text/css" rel="stylesheet" href="css/bootstrap.css" />

       <script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
       <script src="js/bootstrap.js"> </script>
       <script> 
                 $(function(){ 
                                 $('form').validate()
                             }); 
        </script> 
 </head>
 <body> 
 <form class = "well span6"> 

 <label> Username </label> 
 <input type="text" id = "myName" class ="span3" placeholder ="Type your username here..." class = "required"/> 

  <label> Password</label> 
 <input type="text" id "myPassword" class ="span3" placeholder ="Type your password here..." class = "required"/> <br/> 

 <button id = "submit" class ="btn btn-primary">Submit </button>
 <button class = "" > Clear <br/></button><br/> 
 </form> 



 </body> 

</html>

Ich würde schätzen Ihre Hilfe Leute.

  • Der Fehler erklärt alles perfekt. Verwenden Sie ein jQuery-plugin, benötigt zunächst jQuery selbst. Ich sehe nicht, jQuery enthalten in Ihrem code.
InformationsquelleAutor Stranger | 2012-12-31
Schreibe einen Kommentar