14 Mar
This is your friend when you need to trim whitespace in javascript:
replace(/^\s*|\s*$/g,”)
omg. sure, it /works/, but at what cost?
Name (*)
E-mail (*)
URI
Powered by WP Hashcash
Copyright © 2007 - Rev’s Thought Dump - is proudly powered by WordPress Illacrimo Theme is created by: Design Disease brought to you by LifeSpy.
One Response for "Javascript trim"
omg. sure, it /works/, but at what cost?
Leave a reply