I have this string:
var someString = \"23/03/2012\";
and want to replace all the \"/\" with \"-\".
I tried to do this:
<
Remove all forward slash occurrences with blank char in Javascript.
Javascript
modelData = modelData.replace(/\//g, '');
You need to escape your slash.
/\//g