•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 392,070 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,270 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 551 | Replies: 3 | Solved
![]() |
Hi,
you can sumply use
but if you also want to give a condition that a 0 will be prefixed only for numbers less than 10.
then
you can sumply use
t2 = "0"+t2;
but if you also want to give a condition that a 0 will be prefixed only for numbers less than 10.
then
if(t2<10)
{
t2 = "0"+t2;
} Vivek Rawat
Keep solving complexities.
Keep solving complexities.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- adding two numbers (C)
- Adding numbers (Python)
- how do i add the numbers in a listbox and display it in another textbox? (Visual Basic 4 / 5 / 6)
- generating random numbers into an array.. (Java)
- Add two numbers (C++)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Suggestions on Web Project Topic
- Next Thread: Thomas Brattli's window script in FF 3


Linear Mode