I've got a data-123 string.
data-123
How can I remove data- from the string while leaving the 123?
data-
123
var ret = "data-123".replace('data-',''); console.log(ret); //prints: 123
1.4m articles
1.4m replys
5 comments
57.0k users