Skip to content
Advertisement

text blinking in textarea

I have the following code :

JavaScript
JavaScript
JavaScript

I need to copy the text entered in textbox and paste in the textarea. But the text is displayed and erased immediately like blinking. I want that to be displayed permanently.

Please guide me!

Advertisement

Answer

<button>s, by default are type="submit", so clicking is submitting your form. Add type="button" to your button.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement