String.prototype.replaceAll = function(search, replace){ if(!replace){ return this; } while(this.indexOf(search) !== false){ this.replace(search, replace); } return this; };
function replaceAll(strString, oldValue, newValue) { while (strString.indexOf(oldValue) != -1) { strString = strString.replace(oldValue, newValue); } return strString; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)