I want to make a textarea to show its content to a div by a clicking a button. I wrote a simple code that it sees for short time in div but it disappears in div and textarea quickly.
how can I correct it, for now I’m only designing the page and I want to make style for answer so I need to see content in div without connect it to server.
<textarea class="inBox"></textarea><button class="btn">Send</button>
return false; to the end of your method to prevent post action or change inputs type to
Your problem is in reload form by submit button click.