how to remove comma(,) from splitted string in javascript?
<p>I have used split function to split the string in javascript.
which is as,</p>

<pre><code>   test= event_display1.split("#");
</code></pre>

<p>This works perfectly and giving me output as,   </p>

<pre><code>   Event Name : test1
   Location : test, test, test
   ,
   Event Name : test2
   Location : test, test, test
   ,
</code></pre>

<p>But i want my output as</p>

<pre><code>   Event Name : test1
   Location : test, test, test

   Event Name : test2
   Location : test, test, test
</code></pre>

<p>When i split the value it set comma after the character which i have used as split character.</p>

<p>How can i remove this comma from my output value?</p>
