How to replace round bracket tag in javascript string
- by tomaszs
I have trouble with changing round bracket tag in Javascript. I try to do this:
var K = 1;
var Text = "This a value for letter K: {ValueOfLetterK}";
Text = Text.replace("{ValueOfLetterK}", K);
and after that I get:
Text = "This a value for letter K: {ValueOfLetterK}"
What can be done to make this work? When I remove round brackets it works fine.