How to dynamically empty the textarea

Jul 4, 2012 at 4:16 PM

Hello,
so everything is the title,

I have tested all this without success :

$("#Mytextarea").htmlarea('updateHtmlArea'); (strange behaviour, works burt not every time)

$("#Mytextarea").val(''); 

$("#Mytextarea").text('').val(''); 

Any help ?

Jul 10, 2012 at 10:54 AM

Try This , its working.

$("#Mytextarea").val('');

$("#Mytextarea").htmlarea('updateHtmlArea');

Jul 10, 2012 at 1:30 PM

Hello, 

thank you, if anybdy have the same problem  I had to use this to empty the textarea (the other option did not worked):

$("#Mytextarea").val('').htmlarea('updateHtmlArea');

Regards