Help On PHP | Help Full PHP + JavaScript
Monday, 12 March 2012
how to use trim() function in IE below version
Use this function in head section of your webpage and then use
trim() function.
if(typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment