I\'m looking for a good JavaScript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .
printf()
String.Format()
IFormatProvider
For basic formatting:
var template = jQuery.validator.format("{0} is not a valid value"); var result = template("abc");