replace space with underscore jqeury code example
Example: js replace space with underscore
var string = "my name";
string = string.replace(/ /g,"_"); //returns my_name
var string = "my name";
string = string.replace(/ /g,"_"); //returns my_name