GORAGOD.com

freelance, web developer, web designer, hosting, domain name

สอบถามเกี่ยวกับ textarea ครับ :)

คือผมอยากจะทำประมาณว่า
ในเว็บหนึ่ง  มี 2 textarea ครับ
คือ A และ B

อยากให้เวลาพิมพ์ข้อความใดๆลงไปใน textarea A
แล้วข้อความนั้นๆ ก็จะขึ้นที่ textarea B ด้วย ทันทีอ่ะครับ

พอจะมีสคริปมั้ยครับ?
22 Aug 2009 2 5,828

<textarea id="text1" onkeyup=doKeyUp()></textarea>
<textarea id="text2"></textarea>
<script type="text/javascript">
 function doKeyUp(){
     document.getElementById('text2').innerHTML = document.getElementById('text1').innerHTML;
}
</script>
#1

ขอบคุณครับ

#2
Comment
Upload jpg, jpeg files no larger than 2M
^