DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+7 =
Submit