title: jQuery - clear textarea text content
body: <p>How can i clear textarea content using "onclick"?</p>
  
  <pre><code>&lt;div class="form-group col-sm-12"&gt;
      &lt;label class="control-label col-sm-3"&gt;System Main Message&lt;/label&gt;
      &lt;div class="col-sm-4"&gt;
          &lt;textarea id="editor-area" name="sysMsg" class="form-control"&gt;&lt;?PHP echo $mainIndex['sysMsg'] ?&gt;&lt;/textarea&gt;
          &lt;a href="#" onclick="document.getElementById['editor-area'].value = ''"&gt;Clear message&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>