Setting value to textarea doesn't work
<pre><code>var myText = $('#myTextBox').val() + '&lt;span id="caret_pos_holder"&gt;&lt;/span&gt;';
$('#myTextBox').val(myText);
console.log($('#myTextBox').val());
</code></pre>

<p>In the console log, there is no <code>&lt; span &gt;</code> tag.
Why isn't the value of the textbox set to it?</p>
