Replace substring.But does not work for me ...
var str='------check'; str.replace('-','');
Output: ----- check
JQuery removes the first '-' from my text. I need to remove all the hem from my text. My expected result: 'check'
javascript
Mohan ram
source share