jQuery Replace All in String - SitePoint – Learn HTML, CSS, JavaScript, PHP, Ruby & Responsiv
Simple jQuery code snippet to replace all occurrences of characters (or strings) within a string. It could be used to find and replace all substrings found inside a string. Don’t forget to leave out the quotes on the first parameter (the g stands for glob...