Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread Poll:
Author: Subject: How to add 0
ityouralok
Newbie

Posts: 1
Registered: 5/3/2007
Location: india
Member Is Offline
posted on 5/3/2007 at 07:03 AM Reply With Quote
How to add 0


Hi,

I need to add 0 before single digit in slider output textbox.
for example if there is 1 then 01 should be appear in textbox
which is attached to slider.

When we change value via slider then then then 0 should appear if value is less then 10 before single digits.

Please help me

Thanks
Alok Verma
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/3/2007 at 03:17 PM Reply With Quote

in line 99 of slider.js replace
e_input.value = n_value;
with
e_input.value = (n_value >= 0 && n_value < 10 ? '0' : '') + n_value;
View User's Profile View All Posts By User U2U Member
Post new thread Poll:

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Designs
Equalizer
Free Download Free Download
Product Documentation Documentation:
Documentation Page
Change Log
Support Forum Support Forum

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004