Javascript function not getting whole value -


i calling showedit function argument. when alert in function showing partial value.

here html code:

<a href="javascript:void(0)" onclick="showedit(856478546521458789);">     <i class="fa fa-pencil-square-o" aria-hidden="true" style="font-size: 20px;float: right;"></i> </a> 

here javascript code:

function showedit(id) {     alert(id);     document.getelementbyid("update_status_" + id).style.display = "block";     document.getelementbyid("status_" + id).style.display = "none"; } 

can tell me problem?

send argument string. see code snippet below:

<a href="javascript:void(0)" onclick="showedit('856478546521458789');">     <i class="fa fa-pencil-square-o" aria-hidden="true" style="font-size: 20px;float: right;"></i> </a> 

it happening because exceeding javascript's max_int value.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -