Created
June 1, 2012 16:32
-
-
Save jacksonfdam/2853386 to your computer and use it in GitHub Desktop.
jQuery replace all characters with asterisks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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