how to remove some thing from text content in js code example Example: how to remove a text by javascript var ret = "data-123".replace('data-','');