2
The div is this:
<div class="table_box br_0_0_5_5 user_points" style="border-top:none;">4,660</div>
Code to get this div:
document.getElementsByClassName("table_box br_0_0_5_5 user_points")[0]
How can I get the value "4,660" and put in an Alert? I tried several ways but did not succeed.
One more question, if I want to do an if with that value, saying that if it is greater than or equal to 4,660 it shows Alert, how can I do this? Thank you
– user92401
You can do it this way:
var texto = document.getElementsByClassName("br_0_0_5_5")[0].textContent;
var valor = parseFloat(texto.replace(",",""));
console.log(valor);
if(valor >= 4660){
 alert(texto);
}
– Sam