Dispaly value of one textbox to another textbox using Jquery & Javascript
<script>
function copyText2() {
txtHint = document.getElementById("txtHint");
color = document.getElementById("color");
color.value = txtHint.value;
}
</script>
<div>
TextBox 1 : <input type="text" id="txtHint" onkeyUp="copyText2()"></input>
TextBox 2 : <input type="text" id="color"></input>
</div>
</html>
Demo:function copyText2() {
txtHint = document.getElementById("txtHint");
color = document.getElementById("color");
color.value = txtHint.value;
}
</script>
<div>
TextBox 1 : <input type="text" id="txtHint" onkeyUp="copyText2()"></input>
TextBox 2 : <input type="text" id="color"></input>
</div>
</html>
TextBox 1 :
TextBox 2 :
No comments:
Post a Comment