Created
September 15, 2012 00:05
-
-
Save adamyanalunas/3725693 to your computer and use it in GitHub Desktop.
Fix magic moving focus on franklabs.com/igs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clearField(field) | |
{ | |
if ( field && field.value ) | |
field.value = ''; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="index.php?action=login" method="post"> | |
<fieldset> | |
<span>Sign in</span> <a href="index.php?action=pwreset" title="Forgot Password?" id="help-icon">Forgot?</a> | |
<input type="text" class="text" name="email" placeholder="email" id="email" onfocus="clearField(this)"/> | |
<input type="password" class="text" name="password" placeholder="password" id="password" onfocus="clearField(this)"/> | |
<input type="image" src="-/img/btn-login.png" class="button" /> | |
<a href="index.php?action=pwreset" title="Forgot Password?">Forgot?</a> | |
</fieldset> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment