Version compl�te: jsB@nk » Form » Strip Personnages
URL: https://www.javascriptbank.com/strip-characters.html
Bandelettes de la caractères une entrée de chaîne. Vous pouvez changer le caractères vous voulez retirés de la chaîne en changeant une ligne de code. Très utile!
Version compl�te: jsB@nk » Form » Strip Personnages
URL: https://www.javascriptbank.com/strip-characters.html
<SCRIPT LANGUAGE="JavaScript">// Ryan A. Somma ([email protected])<!-- Beginfunction stringFilter (input) {s = input.value;filteredValues = "1234567890"; // Characters stripped outvar i;var returnString = "";for (i = 0; i < s.length; i++) { // Search through string and append to unfiltered values to returnString.var c = s.charAt(i);if (filteredValues.indexOf(c) == -1) returnString += c;}input.value = returnString;}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form name=thisform method=post action="" onSubmit=""><input type=text size=14 maxlength=14 name=inputField><br><input type=button value="Submit" onClick="stringFilter(inputField);"><input type=reset value="Reset"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->