I have a string \"-123445\". Is it possible to remove the \'-\' character from the string?
I have tried the following but to no avail:
$mylabel.text(
$mylabel.text("-123456"); var string = $mylabel.text().replace('-', '');
if you have done it that way variable string now holds "123456"
string
"123456"
you can also (i guess the better way) do this...
$mylabel.text("-123456"); $mylabel.text(function(i,v){ return v.replace('-',''); });