Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
- <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
- <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
- </head>
- <body>
- <script>
- $(document).ready(function() {
- $('#submitlogin').click(function(){
- var userName=$('#username').val();
- var passWord=$('#password').val();
- if($.trim(userName)==""){
- $("#notification").css("background-color", "#ff0000");
- $("#notification").text("You are here.");
- return false;
- }
- });
- });
- });
- </script>
- <div data-role="page" id="bloglogin">
- <div data-role="header">
- <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" rel="external">Back</a>
- <h1>Blog</h1>
- <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-icon-home ui-btn-icon-left" rel="external">Home</a>
- </div>
- <div data-role="main" class="ui-content">
- <form>
- <div class="ui-field-contain">
- <label for="username">Username:</label>
- <input type="text" name="username" id="username">
- <label for="password">Password:</label>
- <input type="password" name="password" id="password">
- </div>
- <input type="reset" data-inline="true" value="Reset">
- <input type="button" id="submitlogin" data-inline="true" value="Submit">
- <h3 id="notification"></h3>
- </form>
- <p>
- <a href=''>New user? Create an account.</a>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement