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
Post a Comment