there are other techniques, try these: parseInt(<my text value>.replace(/^0+/g, '')); ex.: parseInt("08".replace(/^0+/g, ''));...
Separate names with a comma.