Question and answer is powered by AnsPress.io
I want to remove space from a string value. How can I remove this pace?
Ok, no problem use trim();
For example:
<script type="text/javascript"> var res="some string value with spaces"; var my_value=res.trim(); alert(my_value); </script>