I just want to ask how to convert the number to String. What I want to output is “000000” incremented per second “0000001”. I tried different methods but it will output to 1,2,3… I tried this but still won’t work.
$(document).ready(function(){
xx();
var x = 0;
function xx()
{
x++;
if(x.length==5) {
x = "00000" + convert.toString(x);
}
$("div.sss").text(x);
setTimeout(xx,1000);
}
});
Like this: