ערכתי לאחרונה בתאריך 15.09.08 בשעה 18:49 בברכה, akoka
<html><head> <script type="text/javascript"> function cloneTxt(inputId) { var getMainInput = document.getElementById("m_input"); document.getElementById(inputId).value = getMainInput.value; } </script> <title>Untitled 1</title> </head> <body> <textarea id="m_input" onkeyup="cloneTxt('s_input')"> <textarea id="s_input"> </body> </html>
|
לא מסובך מדי ,האמת הופתעתי שVALUE עובד גם על TEXTAREA.