Create login form with only user name and password
Description
The following code shows how to create login form with only user name and password.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.4.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css">
<script type='text/javascript'>//<![CDATA[
$(document).ready(function() {<!--from www.ja v a 2 s. c o m-->
$("#submit").click(function(){
alert("Hi");
});
});
//]]>
</script>
</head>
<body>
<div data-role="page" id="callAjaxPage">
<div data-role="header">
<h1>Login</h1>
</div>
<div data-role="content">
<form id="callAjaxForm">
<div data-role="fieldcontain">
<label for="userName">Username</label>
<input type="text"
name="userName" id="userName" value="" />
<label for="password">Password</label>
<input type="text" name="password" id="password" value="" />
<button data-theme="b" id="submit" type="submit">Submit</button>
</div>
</form>
</div>
</div>
</body>
</html>