present address <input data-bind="value: pratt"/><br>
<input type="checkbox" data-bind="event:{change: same}"/><br>
Permanent address <input data-bind="value: pmadd"/><br>
<script>
function AppViewModel() {
this.pratt = ko.observable("");
this.pmadd = ko.observable("");
this.same = function(){
$(abc ).toggle();
var abc = this.pradd();
this.pmadd(abc);
}
}
ko.applyBindings(new AppViewModel());
</script>
I want to get value from first textbox to another on button click and on uncheck remove the value in textbox