繁体   English   中英

如何在输入中添加复选框

[英]How to add check boxes inside input

我需要在输入和滚动条中添加复选框以进行输入。

我已经尝试过输入但如何添加复选框。请帮助我解决这个问题。

CSS::

.text-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    }
    .btn {
    position: absolute;
    top: 10px;
    right: 10px;
    }

HTML:

<div class="col-md-12 text-container" style="margin: 7px;">
    <input type="password" id="reg_password" name="reg_password" style="height: 35px;" class="form-control input-lg" placeholder="Password" ng-model="register_password" />
    <span id="btn" class="btn"><input type="checkbox" id="eye" onclick="if(reg_password.type=='text')reg_password.type='password'; else reg_password.type='text';" /></span>
</div>

请检查答案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM