take out space from string javascript code example
Example 1: remove space from string javascript
var str = " Hello World! ";
alert(str.trim());
Example 2: delete space from string javascript
var str = "470 ";
str.trim();
var str = " Hello World! ";
alert(str.trim());
var str = "470 ";
str.trim();