Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string remove substring

var string = "data-123";
string = string.replace('data-','');
alert(string)
 
PREVIOUS NEXT
Tagged: #javascript #string #remove #substring
ADD COMMENT
Topic
Name
6+6 =