Recent | Popular
#javascript #space #replacespace #html
//html code <p class="custom-text-selection">Select some of this text.</p> //css code ::selection { background: aquamarine; color: black; } .custom-text-selection::selection { background: deeppink; color: white; }
#javascript #space #replacespace
alert("this is a test".split(" ").join("-")); //or title.replace(/\s/g , "-");
Tue Apr 25 2023 12:32:11 GMT+0000 (Coordinated Universal Time) 30 Seconds Of Knowledge
Mon Apr 24 2023 05:57:29 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/2657433/replace-space-with-dash-javascript