Replacing occurence of character in a string with jquery
<p>I need to replace occurrence of very <code>\</code> with <code>-</code> in a string. I am using the following code but it replace only for once occruence:</p>

<pre><code>var start = '1/1/12';
startNew = start.replace('/', "-"); 
</code></pre>

<p>Result i am getting is: <code>1-1/12</code></p>

<p>Result i want is: <code>1-1-12</code></p>
