tostring trim javascript code example
Example 1: javascript trim spaces
value = value.trim();
Example 2: remove whitespace javascript
var str = " Some text ";
str.trim();
value = value.trim();
var str = " Some text ";
str.trim();