Advertisement
Guest User

Untitled

a guest
Feb 5th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
  6. <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
  7. <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
  8. </head>
  9. <body>
  10.  
  11. <script>
  12. $(document).ready(function() {
  13. $('#submitlogin').click(function(){
  14. var userName=$('#username').val();
  15. var passWord=$('#password').val();
  16.  
  17. if($.trim(userName)==""){
  18. $("#notification").css("background-color", "#ff0000");
  19. $("#notification").text("You are here.");
  20. return false;
  21. }
  22. });
  23. });
  24. });
  25. </script>
  26.  
  27. <div data-role="page" id="bloglogin">
  28. <div data-role="header">
  29. <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" rel="external">Back</a>
  30. <h1>Blog</h1>
  31. <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-icon-home ui-btn-icon-left" rel="external">Home</a>
  32. </div>
  33.  
  34. <div data-role="main" class="ui-content">
  35. <form>
  36. <div class="ui-field-contain">
  37. <label for="username">Username:</label>
  38. <input type="text" name="username" id="username">
  39. <label for="password">Password:</label>
  40. <input type="password" name="password" id="password">
  41. </div>
  42. <input type="reset" data-inline="true" value="Reset">
  43. <input type="button" id="submitlogin" data-inline="true" value="Submit">
  44. <h3 id="notification"></h3>
  45. </form>
  46. <p>
  47. <a href=''>New user? Create an account.</a>
  48. </div>
  49. </div>
  50.  
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement