when i call function and give it 154911812952895_154922162951860 it converts the paramter to 1.5491181295289516e+29. this is my code:
<span onclick="javascript:remove_attachment(154911812952895_154922162951860)">×</span>
function remove_attachment(id){
console.log(id);
console.log(typeof id);
};
the output:
1.5491181295289516e+29
number
i want to return 154911812952895_154922162951860 not 1.5491181295289516e+29
function remove_attachment(id){
console.log(id);
console.log(typeof id);
};
<span onclick="javascript:remove_attachment(154911812952895_154922162951860)">× CLICK ME</span>