relpace textarea in jquery
<p>I'm trying to Replace a %%%VERSION%%% text, the text is coming from an tinyMCE editor. </p>

<p>looks like this. </p>

<pre><code>$("#description textarea").val($("#description textarea").val().replace(/%%%VERSION%%%/g, STAT_VERSION_INFO));
</code></pre>

<p>The value of the textearea is:</p>

<pre><code>&lt;textarea rows="20" cols="117" name="description" id="description"&gt;Some code version info: %%%VERSION%%%&lt;/textarea&gt;
</code></pre>

<p>But i can't make it replace anything. </p>

<p>Any idéas how to fix it, or maybe other solutions. </p>
