How to Add One Value to the "0001". When I am adding one value to this number the result shows only 2.How can i get 0002?
I am using this code:
var pcode = $('#productcode').val(); // Now the pcode value is 0001
var num= parseInt(pcode) + 1;
But the result shows only 2