-1
I have a list of products in a table, and in order to make the interface more friendly, in the column 'price' I awarded the 'R$' next to the value. Now I need to capture this value to do a mathematical operation and need to convert to float:
//captura o valor da linha na table
var linha = $(this).parent('td').parent('tr');
// deve converter o valor para Float
var valor = parseFloat(linha.find('td:eq(1)').text());
Using Jquery, how do I remove the 'R$' characters and convert the value to Float?
parseFloat(linha.find('td:eq(1)').text().replace('R$',''))
can’t?– Sam