Add character(s) to value
<p>I have a Table, TextArea and Button, when a user type in the Textarea such as " Hello World! " and then clicks on the button I want the text to become  " Hello World! (*) ".</p>

<p>How can I do that with this Jquery code that I'm using:</p>

<pre><code>$(document).ready(function () {
     $('#Button').click(function () {
         if ($("#MyTextArea").val().indexOf('|') &gt; -1) {
             alert("The box has special characters. \nThese are not allowed.\n");
         } else {
             if ($.trim($("#MyTextArea").val()).length &gt; 0) {
                 $('#MyTable tbody').append(
                 $('&lt;tr/&gt;', {
                     click: function () {
                         $(this).remove()
                     },
                     html: $("&lt;td /&gt;", {
                         html: $("#MyTextArea").val(),
                         'data-sharp-id': 8
                     })
                 }));
                 return false;
             }
         }
     });
 });
</code></pre>
