This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a form that contains two textareas and a button. My onclick="display()" function goes like this:
On clicking the button, contents of first textarea should be copied to second textarea.
But it seems the innerHTML function is not working as nothing is displayed in the textarea. If I just put myDiv.innerHTML="hello"; it is displayed.
Without using innerHTML, if I just type in the first textarea, it is copied to the second textarea.