bootstrap-wysihtml5 icon indicating copy to clipboard operation
bootstrap-wysihtml5 copied to clipboard

Cannot clear the textarea's text / contents

Open chalu opened this issue 10 years ago • 2 comments

Is there a way to clear the contents of the textarea ? my intuition is to use $('.textarea').val(''); but this has not worked, neither has $('.textarea').empty() worked.

chalu avatar Oct 03 '14 15:10 chalu

You can do it by setHTML method. $(".selector").editable("setHTML", "", false);

archanavhire avatar Oct 06 '14 10:10 archanavhire

I have the same problem

$(".selector").editable("setHTML", "", false);

does not work for me.

marwen-cherif avatar May 28 '15 10:05 marwen-cherif