<textarea id="message"></textarea>
onkeyup="document.getElementById('sex').value=this.value;
<input type="text" id="textBoard" value="" /> <input type="text" id="yadiv" value="" /> <script type="text/javascript"> var text = document.getElementById("textBoard"); var cloneText = document.getElementById("yadiv"); text.onkeyup = function() { cloneText.value = this.value; } </script>
<input type="text" id="textBoard"> <input type="text" id="yadiv"> <script type="text/javascript"> var text = document.getElementById('textBoard'); var cloneText = document.getElementById('yadiv'); text.onkeyup = function() { cloneText.value = this.value; } </script>
<input type="text" id="textBoard" value="" />