Advanced
View Scraps
Categories
Most Viewed
Top Rated
Add Scraps
History
Today in History
Thoughts
Welcome,
Logout
Sign In / Sign Up
JS - Remove whitespaces in two ways
by barkkathulla
[
Edit
]
2014-03-01 15:02:01
1.Remove top and end spaces only
mystring=mystring.trim();
2.trim all spaces in a string
mystring =mystring.replace(/s/g, '');
Tagged in:
trim
java script
js
white space
split
911
0
0
Previous
Next
You must
LOGIN
to add comments
Posting your comment...
Tags
Apache
Firefox Tweeks
Shortcuts
PHP
Others
CSS
Javascript
DNS
Windows
Websites
Linux
Game programming
Mysql
CVS
HTML
MS Office
JSP/Java
FTP Server
Flash
AJAX
More...
Indian Web Directory
Time Zone Converter
Web Internet Statistics
Live Chatting Online
Comments
expected, smart move:)
Already black money holders account is empty..
The money will never return
Nice sharing..
Thank you...
Good one...
Nice post...
Good sharing.....
Good...
Thanks for nice sharing...