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)

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

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements