Jquery 如何在浏览器中启用用户名和密码自动填充

Jquery 如何在浏览器中启用用户名和密码自动填充,jquery,html,autofill,Jquery,Html,Autofill,我有一个登录页面,我想在其中自动填写用户名和密码字段,一旦用户首次登录。所以下次如果他回到登录页面,用户名和密码字段需要自动填充,所以他只需单击登录按钮 我已经启用了上述字段的自动完成功能,但它在IE或chrome浏览器中不起作用 <input type="text" id="userName" autofocus="autofocus" value="" tabindex="1" autocomplete="on"> <input type="password" na

我有一个登录页面,我想在其中自动填写用户名和密码字段,一旦用户首次登录。所以下次如果他回到登录页面,用户名和密码字段需要自动填充,所以他只需单击登录按钮

我已经启用了上述字段的自动完成功能,但它在IE或chrome浏览器中不起作用

<input type="text"  id="userName" autofocus="autofocus" value="" tabindex="1" autocomplete="on">

 <input type="password"  name="password" id="password" value="" tabindex="2" maxlength="20" autocomplete="on">

您还必须将其添加到页面上的

<form autocomplete="on" ..other attributes>


检查您的浏览器设置。。它在你登录的其他网站上有效吗?是的,它在我的facebook和其他网站上有效。。想知道是否采取了其他步骤来自动填充?。。