views:

38

answers:

1

hello.. 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..

+1  A: 

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