jquery form validation plugin

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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5. <title>Management</title>
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <title>jQuery Mobile</title>
  8.     
  9.       <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  10.       
  11.        <script src="./js/lib/jquery.validate.js"></script>
  12.  <script src="./js/lib/jquery.validate.min.js"></script>

  13. <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
  14.   
  15. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
  16. <link rel="stylesheet" href="./css/login.css" />
  17. <link rel="stylesheet" href="./css/login.min.css" />
  18. <style>
  19. </style>
  20. <script>
  21. $('form').validate({
  22. rules: {
  23. email: {
  24. required: true
  25. },
  26. password: {
  27. required: true
  28. }
  29. }
  30. });
  31. </script>

  32. </head>
  33. <body >
  34. <div data-role="page" >

  35. <div data-role="header"  id="header" data-position="fixed" data-tap-toggle="false" data-fullscreen="true"  data-theme="f"  > 

  36. <p style="text-align:center; ">Management</p>


  37. </div>
  38. <div data-role="content" >

  39. <div  style="position:absolute;left:50%;top:50%;margin-left:-100px;margin-top:-50px;"  >
  40. <form method="GET">
  41. <div data-role="fieldcontain">
  42. <label for="email">Email:</label>
  43. <input type="email" name="email" id="email" />
  44. </div>
  45. <div data-role="fieldcontain">
  46. <label for="password">Password:</label>
  47. <input type="password" name="password" id="password" />
  48. </div>
  49. <input data-role="submit" type="submit" value="Login" />
  50. </form>
  51. </div>
  52. <div >
  53. </div> <!--end of main div -->
  54. </div><!--end of content -->
  55. <!--<div data-role="footer" data-fullscreen="true"   data-position="fixed" data-theme="b" style=" position:absolute; bottom:0; width:100%;">
  56. <h1>Mac</h1>
  57. </div>end of footer -->
  58. </div><!--end of page -->
  59. </body>
  60. </html>