4
I’m trying to get the text of this structure:
<span id="our_price_display">R$ 71,90</span>
And I’d like you to return to me just the 71,90
.
But in the structure I created, I can’t take the "R$" from the text and make it recognize only the numbers.
How could I make this conversation?
Excuse my ignorance... $(Function(){ var valueDaDiv = $("#our_price_display"). Empty('/ d+, d+/g'); var myInteger = parseint(valueDaDiv); // console.log(myInteger); }); ?
– Julio Rodrigues
@Juliorodrigues updated the answer with the explanation and an example.
– BrTkCa