Javascript Trim function

function trim(s){
	return s.replace(/^\s*(.*?)\s*$/,"$1");
}
PG

Author: admin

Random Post

Delicious

No comments yet... Be the first to leave a reply!

Leave a Reply