String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
}
Trim text using javascript
Posted by
Rajesh Rolen
at
Monday, June 21, 2010
Labels: java script
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
}
Labels: java script
Copyright 2009 -
DotNet Academy of Rajesh Rolen
Web Designer: Ray Creations. Sponsored by Web Hosting India & Web Design Company
0 comments:
Post a Comment