Add comma to textbox after spacing in jQuery
<p>I need to create a script that adds a comma and space (after the comma) to a textbox when a user presses the space bar.
If no text has been inserted then a comma should not be added. I have looked everywhere to find a solution.</p>

<p><strong>Example</strong></p>

<pre><code>This, Is, A, Keyword
</code></pre>

<p><strong>Here is my current jQuery for this textbox</strong></p>

<pre><code>&lt;script type="text/javascript"&gt;
   $('#tags').keyup(function(){
      this.value = this.value.toLowerCase();
   });
&lt;/script&gt;
</code></pre>
