JavaScript split function
<p>i like to split a string depending on "," character using JavaScript</p>

<p>example  </p>

<pre><code>var mystring="1=name1,2=name2,3=name3";
</code></pre>

<p>need output like this</p>

<pre><code>1=name1
2=name2
3=name3
</code></pre>
