jquery form validation plugin
Hi,
i am trying to use jquery form validation plugin but it is not working.i am new web development so i dont understand what is wrong. here is my code .i am testing my code in iphone simulator
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Management</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>jQuery Mobile</title>
-
- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
-
- <script src="./js/lib/jquery.validate.js"></script>
- <script src="./js/lib/jquery.validate.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
-
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
- <link rel="stylesheet" href="./css/login.css" />
- <link rel="stylesheet" href="./css/login.min.css" />
- <style>
- </style>
- <script>
- $('form').validate({
- rules: {
- email: {
- required: true
- },
- password: {
- required: true
- }
- }
- });
- </script>
- </head>
- <body >
- <div data-role="page" >
- <div data-role="header" id="header" data-position="fixed" data-tap-toggle="false" data-fullscreen="true" data-theme="f" >
- <p style="text-align:center; ">Management</p>
- </div>
- <div data-role="content" >
- <div style="position:absolute;left:50%;top:50%;margin-left:-100px;margin-top:-50px;" >
- <form method="GET">
- <div data-role="fieldcontain">
- <label for="email">Email:</label>
- <input type="email" name="email" id="email" />
- </div>
- <div data-role="fieldcontain">
- <label for="password">Password:</label>
- <input type="password" name="password" id="password" />
- </div>
- <input data-role="submit" type="submit" value="Login" />
- </form>
- </div>
- <div >
- </div> <!--end of main div -->
- </div><!--end of content -->
- <!--<div data-role="footer" data-fullscreen="true" data-position="fixed" data-theme="b" style=" position:absolute; bottom:0; width:100%;">
- <h1>Mac</h1>
- </div>end of footer -->
- </div><!--end of page -->
- </body>
- </html>