Javascript doesn’t natively support trim on strings. It is however very easy to implement with regular expressions. function trim (str) { str = this != window? this : str; return str.replace(/^\s+/, ”).replace(/\s+$/, ”); } [...]
Javascript doesn’t natively support trim on strings. It is however very easy to implement with regular expressions.
function trim (str) { str = this != window? this : str; return str.replace(/^\s+/, ”).replace(/\s+$/, ”); }
[...]
Please fill in the following fields
* - Required
Your Name: *
Your E-Mail: *
Your Remarks:
Friend's Name: *
Friend's E-Mail: *