2

im using jwysiwyg and i dont know how to clear the value of the frame to where the user will input the text..

im doing it like this..

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

but it is not working..

Nick Craver
  • 623,446
  • 136
  • 1,297
  • 1,155
Vincent Dagpin
  • 3,581
  • 13
  • 55
  • 85

1 Answers1

3

You can use the setContent method like this:

$('#wysiwyg').wysiwyg('setContent','');

This has the effect of emptying the <body> element, so it should do what you're after.

Nick Craver
  • 623,446
  • 136
  • 1,297
  • 1,155