Skip to content

Instantly share code, notes, and snippets.

@jacksonfdam
Created June 1, 2012 16:32
Show Gist options
  • Save jacksonfdam/2853386 to your computer and use it in GitHub Desktop.
Save jacksonfdam/2853386 to your computer and use it in GitHub Desktop.
jQuery replace all characters with asterisks
//iVal is your string of characters (with asterisks).
iVal = iVal.substr(i).replace(/[\S]/g, "*");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment