Replace space character in between string in Jquery


Monday, August 2, 2010

Replace space character in between string in Jquery

Sometimes it possible that we need string by all space character removed, so here is the way by which we can remove space

character from our string.

For Example :

Our string is "Rajesh Singh"

var searchvalue='Rajesh Singh'
var searchvaluetemp = searchvalue.replace(/ /g, '');

Our Output will be "RajeshSingh"

Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer

Email: raj143svmit@gmail.com
e-Procurement Technologies Ltd (India)
www.abcprocure.com


No comments :