Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Trim


Message #1 by rg1@h... on Thu, 12 Apr 2001 22:05:03
Wonderful. Thanks so much.

-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Thursday, April 12, 2001 2:19 PM
To: javascript
Subject: [javascript] Re: Trim


Hi Rita,

Nope, not natively. However, at the following addresses you'll find 
functions that perform these tasks:

http://www.4guysfromrolla.com/webtech/code/LTrim.shtml
http://www.4guysfromrolla.com/webtech/code/RTrim.shtml
http://www.4guysfromrolla.com/webtech/code/Trim.shtml

Hope this helps,

Imar


At 10:05 PM 4/12/2001 +0000, you wrote:
>Hi.
>
>Is there a JavaScript method similar to LTrim and RTrim?
>
>I need to remove leading and trailing spaces in a string.
>
>TIA.
>
>Rita

  Return to Index