javascriptjqueryjhtmlarea

How to set Jhtmlarea editor to blank or empty


I've a textarea and have implemented jHtmlArea Editor jquery plugin. And when click on reset button. I need to set it to empty or blank.

HTML is as below

  <textarea cols="170" id="area4" rows="20"></textarea>

I tried, But it didn't work.

  $('#area4').htmlarea('html', '');

Any other suggestion please.


Solution

  • I just made it with the help of this code. just used an extra white space ;) and worked smooth for me

      $('#area4').htmlarea("html", "  ");