Skip to content

Instantly share code, notes, and snippets.

@egobrain
Created January 28, 2014 07:47
Show Gist options
  • Save egobrain/8663672 to your computer and use it in GitHub Desktop.
Save egobrain/8663672 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Test remember password</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$('#login-button').click(function (ev) {
alert('AJAX login...');
});
});
</script>
</head>
<body>
<iframe src="dummy.html" name="dummy" style="display: none"></iframe>
<form action="" method="post" target="dummy">
<div id="login">
Email: <input type="text" name="email" id="email"/><br/>
Password: <input type="password" name="password" id="password"/><br/>
<input id="login-button" type="submit"/>
</div>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment