jquery replacing special characters in a string
<p>I will replace <code>c:\pictures\picture1.png</code> to <code>c:\\pictures\\picture1.png</code> </p>

<p>i.e: </p>

<pre><code>var data="c:\pictures\picture1.png"
data=data.raplace('\','\\');
</code></pre>

<p>in asp.net it can run with</p>

<pre><code>data=data.replace('\\','\\\\');
</code></pre>

<p>when I use this method in jquery it replaced only the firs '\' character and it comes so:</p>

<pre><code>c:\\pictures\picture1.png 
</code></pre>

<p>how can I replace all '\' characters</p>
