JavaScript - - By Sam Deering

jQuery replace all characters with asterisks

Use JavaScript to replace all characters with asterisks.

//iVal is your string of characters (with asterisks).
iVal = iVal.substr(i).replace(/[S]/g, "*");
Sponsors