Add leading zeros to this javascript countdown script?
- by eddjedi
I am using the following countdown script which works great, but I can't figure out how to add leading zeros to the numbers (eg so it displays 09 instead of 9.) Can anybody help me out please? Here's the current script:
function countDown(id, end, cur){
this.container = document.getElementById(id);
this.endDate = new Date(end);
…