Problem:
How to replace all space in javascript?Solution:
You will use "replace" method to replace in javascriptExample:
replace all spaces with "_" sign
use:
statename=statename.replace(/ /g, "_");
replace all occurance in javascript
replace all spaces with "abc" sign wirh "_"
use:
statename=statename.replace(/abc/g, "_");
0 comments:
Post a Comment