2
I have a string to be passed through the form and would like to replace some characters of it so that it is in the form of numeral:
if(form1.autonomoBonusBruto.value.includes("R$")){
form1.autonomoBonusBruto.value.replace("R$","");
alert(form1.autonomoBonusBruto.value);
}
And what’s the problem?
– Maniero
It’s not working, I don’t know why, I put Alert to see what the variable looks like after replace, but it’s not taking out the "R$"
– Caio Vieira
You know if you can even get into the IF?
– Diego Armando Cacilha