Possible Duplicate:
JavaScript equivalent to printf/string.format
Equivalent of String.format in JQuery
Is there any built javascript or jquery function that behaives like .net's in string.format()?
Or like javascript's console.log string repclament?
console.log('aString %s', 'valueToReplace')
Javascript string format
yields many hits. If that isn't powerful enough, there is aJavascript sprintf
which is far more powerful. – Jeremy J Starcher Oct 11 '12 at 19:45