single quote to double quote , and , double quote to single quote in javascript
<p>I want to change </p>

<p>every single quote to double quote 
and
every double quote to single quote </p>

<p>in jquery or js.</p>

<pre><code>var myString = " tes't tes\"t tes\"t te'st ";
console.log(myString);

for (i = 0; i &lt; myString.length; i++) {
    console.log(myString[i]);
    if (myString[i] == "'") {
        myString[i] == "\"";
            continue;
    }
    if (myString[i] == "\"") {
        myString[i] == "'";
            continue;
    }
}

console.log(myString);
</code></pre>

<p>But my function is not working well.
Please correct me.</p>
