How do I trim a string in JavaScript? ... See this: String.prototype.trim=function(){ return this.replace(/^\s+|\s+$/g, '');} ... The trim from jQuery is ...
www.google.com.tw