简体   繁体   中英

How to add check boxes inside input

I have a requirement to add check boxes inside input and scroll bar for input.

I have tried input but how to add check boxes.please help me on this.

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>

Please check the Answer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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