Remove_XS_Whitespace 2 | JavaScriptSource

Remove_XS_Whitespace 2

Pat Cahill Aug 27, 2001
Strips excess spaces from a field. Users sometimes enter " " in required fields to trick most validation that only checks for "" length fields. This script takes a string and removes the leading and trailing spaces and also any extra spaces in the string. IE only.
String to strip excess spaces from:

The JavaScript Source: Forms: Remove_XS_Whitespace

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
0 comments)