How to append a textfield using javascript
<p><code>split_values1</code> is an array and it contents some values, all i want to do is  add those values to the textfield with a <code>,</code> separating them.</p>

<pre><code>for(var i = 0; i &lt; split_values1.length; i++) {
   $('#teach_subjects').value += split_values1[i]", ";
}
</code></pre>
