Parameter over 16 javascript error characters

Asked

Viewed 28 times

-1

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

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

return value = 7.556564417025596e+25

right value = 75565644170255961270660660

1 answer

-2

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.