I am Trying to to get value of one text box which is entered by me in other non editable text box. like i am enter abc in one text box while entering Its automatically entered in second text box
plz help me
thanks
<input type="text" id="editable" />
<input type="text" id="uneditable" disabled="disabled" />
The script:
var uneditable = document.getElementById("uneditable");
document.getElementById("editable").onkeyup = function () {
uneditable.value = this.value;
};
Try this:
var editable,noneditable;
window.onload = function () {
editable = document.getElementById('txtEditable');
noneditable = document.getElementById('txtNonEditable');
editable.onkeyup = function () {
noneditable.value = editable.value;
};
};
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.