I want to replace all existence of chars from a string, but it is not working. here is my code:
$.each(jsonArray, function (fromString, jtm) {
// tempString = tempString.replace(jtm.from, jtm.to)
tempString = tempString.replaceAll(jtm.from, jtm.to);
});
I checked to use global to replace all as Told in this article but i am not getting how i can implement in my code.
Please help me.