This blog is my memo for collecting IT stuffs. And some my free softwares.Please use facebook to leave comments.
Javascript doesn't have trim function. but you can use replace() function instead in a way something like this.
target = target.replace(/(^\s+)|(\s+$)/g, "");