I have two input field. I wanted to assign my first textfield value to second textfield value based on checkbox click event. So in my html the checkbox "Show me Password" click will display entered password by user in textfield one to my second textfield.
My html looks something like below.
<div class="input-group bmargindiv1 col-md-12">
<span class="input-group-addon ndrftextwidth text-right" style="width:180px">Password :</span>
<input type="password" name="itemname" id="contactno" class="form-control" placeholder="password" ng-model="password" >
</div>
<div class="input-group bmargindiv1 col-md-12">
<span class="input-group-addon ndrftextwidth text-right" style="width:180px">Show me Password <input type="checkbox" ng-model="checkboxModel.value" /></span>
<input type="text" name="itemname" id="contactno" class="form-control" placeholder="password" readonly="readonly" >
</div>