Only five zeros as default in Javascript.
function removeZeros(){
if (document.getElementById('SSS_No').value == '0'){
document.getElementById(''SSS_No').value = '0'
}
if (document.getElementById('sss_no').value == '00'){
document.getElementById('sss_no').value = '00'
}
if (document.getElementById(''SSS_No').value == '000'){
document.getElementById(''SSS_No').value = '000'
}
if (document.getElementById(''SSS_No').value == '0000'){
document.getElementById(''SSS_No').value = '0000'
}
if (document.getElementById('sss_no').value == '00000'){
document.getElementById('sss_no').value = '00000'
}
if (document.getElementById(''SSS_No').value == '000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '0000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '00000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '0000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '00000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '000000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '0000000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '00000000000000'){
document.getElementById(''SSS_No').value = '00000'
}
if (document.getElementById(''SSS_No').value == '000000000000000'){
document.getElementById(''SSS_No').value = '00000'
}
}
Here in this script, you must create a textbox, allow that textbox to be edited by the user, Now only five(5) zeros(0) will be accepted on that textbox, If the user inputed less or greater than five zeros and on lostfocus the textbox still gives a default of five zeros.
Try this script, and hope you can still develop this script.
Good Luck!!!