Cara menghapus teks dari string di javscript
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123
Mobile Star
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123