I’m trying to replace all instances of the string " in a textbox with doublequotes (“), so that [COLOR=DarkRed]"text"[COLOR=DarkRed]“text”
I get not further than replacing the string with single quotes; because the replace-text withing the replace()-method has to be in doublequotes itself:
[CODE]var Searchterm = document.forms[0].q.value
var SearchtermConv = Searchterm.replace(/"/g, “‘”);
document.forms[0].q.value = SearchtermConv;
The above works for singlequotes. How can I convert to doublequotes?
[COLOR=DarkRed]Searchterm.replace(/"/g, “[B][COLOR=Red]“