Skip to content

Instantly share code, notes, and snippets.

@netdesign
Created May 26, 2012 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save netdesign/2793843 to your computer and use it in GitHub Desktop.
Save netdesign/2793843 to your computer and use it in GitHub Desktop.
Autocomplete
<input type="text" name="name" id="auth_name" autocomplete="on"></input>
<form action="javascript:void(0)" onsubmit="myAuth.login()">
<input type="password" name="password" id="auth_passwd" autocomplete="off"></input>
</form>
<input type="button" value="Log In" onclick="myAuth.login()">
I've no "standard" submit action... al auth is done via javascript (Ajax).
The autocomplete doesn't work!
I guess that the browser doesn't store the value of <input> because for it the user never submitted the form... :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment