Date: 08/13/07 (Java Web) Keywords: php, java Trim is a useful function available in languages like Java & PHP which removes the leading and traling whitespace(s) from a String. Unfortunately Javascript doesn’t natively provide trim functionality to the String object. Fortunately there is a simple solution. Place the following code near the top of your Javascript file (or inline script) to add [...] Source: http://blog.taragana.com/index.php/archive/how-to-add-trim-functionality-to-javascript-string/
|