Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace all spaces with dash in javascript

title = title.replace(/s/g , "-");
var html = "<div>" + title + "</div>";
// ...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #spaces #dash #javascript
ADD COMMENT
Topic
Name
7+1 =