Parameter with more than 16 characters javascript error

-1

I'm trying to pass a variable by an onclick function but when I'm going to see the return is not coming up the whole value, as below:

$("#nomePromocao").append("<tr><td><button onclick='Ativar("+id'+")' ....

return value = 7.556564417025596e + 25

Right value = 75565644170255961270660660

    
asked by anonymous 10.07.2018 / 05:51

1 answer

-2

Solved. In this case you did not have to concatenate the variable.

$("#nomePromocao").append("<tr><td><button onclick='Ativar(id)' ....
    
10.07.2018 / 06:19