Thursday, 18 December 2014

Replace space in Java Script

var course = “The Style And CSS”;
var rep_course = course.replace(/ /g, “-“); //replace all space with -

No comments:

Post a Comment