提问者:小点点

只需要HTML表单密码输入自动填充


你好,我的第一个问题和请求你的帮助。我把domain/subfolder站点放在一起作为我家人的相册,只有static.js go-through从domain index页面,密码表单在最底部(根据需要--这是新生儿的照片,而不是银行账户)。最后,我希望父母不要每次输入相册时都输入密码。但是,我不能使它自动为我填写密码。我试过walkaround(**添加了**),不仅没有成功,而且还弄乱了我的。js go-through。有什么建议吗?

https://vilem.fun/

<div>
    <form id="login-form">
    **<input type="password" name="username" id="password-field" class="login-form-field" placeholder="Single User" style="display: none;">**
    <input type="password" name="token" id="password-field" class="login-form-field" placeholder="Password Here" **autocomplete="current-password"**>
    <input type="submit" value="Family photoalbum" id="login-form-submit">
    </form>
    <br>
    <div id="login-error-msg-holder">
    <p id="login-error-msg">&nbsp;<br>Wrong Password<br>&nbsp;</p>
    </div>
</div>

共1个答案

匿名用户

请尝试以下操作:



       
<div>
    <form id="login-form" autocomplete="on">
    <input type="password" name="password" id="password-field" class="login-form-field" placeholder="Password Here">
    <input type="submit" value="Family photoalbum" id="login-form-submit">
    </form>
    <br>
    <div id="login-error-msg-holder">
    <p id="login-error-msg">&nbsp;<br>Wrong Password<br>&nbsp;</p>
    </div>
</div>

相关问题