Monday, June 21, 2010

Trim text using javascript

String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
}

Share This!


No comments:

Powered By Blogger · Designed By Seo Blogger Templates