scriptygoddess

26 Jun, 2003

Javascript: Trim whitespace

Posted by: Jennifer In: Bookmarks

At developer.irt.org are two functions (same project as below) to trim whitespace around a string. (In php you have the handy function trim() – but in javascript I don't think there' anything that's "pre-made")

(There's a few other's floating around the web too. planet-source, breaking-par – there's more if you search in google)

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

1 Response to "Javascript: Trim whitespace"

1 | Jennifer

June 27th, 2003 at 8:22 am

Avatar

note to self – the function listed at breaking par worked better for me…

Featured Sponsors


  • Michael: You can use get_header(2) in your case. The filename of your custom header has to be header-2.php. The problem with include(your_file.php) is, all
  • cliff: hi wonder if you can help me, pls i designed www.kouga.mobi using dreamweaver CS3 and now want to make the phonenumbers into links so that if you
  • jerey: how do i rewrite this because it tried RewriteEngine on #Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL

About


Advertisements