Answers for "jquery replace space with empty string"

14

js replace space with underscore

var string = "my name";
string = string.replace(/ /g,"_"); //returns my_name
Posted by: Guest on April-24-2020
1

js remove spaces

str = str.trim();
Posted by: Guest on July-02-2020

Code answers related to "jquery replace space with empty string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language