Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to remove text from a string in javscript

var ret = "data-123".replace('data-','');
console.log(ret);   //prints: 123
 
PREVIOUS NEXT
Tagged: #How #remove #text #string #javscript
ADD COMMENT
Topic
Name
3+1 =