Hmm, I need to use it with .val() ideally... I found this now:
http://alexei.417.ro/system/files/sprintf.js.txt

it's pretty lightweight. I guess the printf/sprintf functionality is more standalone really. Would be cool if it could be condensed further and y'know, jquerified for the sake of it =P, but maybe some other time...

thanks Aaron.
Rob

Aaron Heimlich wrote:
You might wanna check this out:

http://bassistance.de/jquery-plugins/jquery-plugin-format/

On 7/2/07, * Robert O'Rourke* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:


    Hi there,

        I'm having fun with Kelvin Luck's datePicker plugin but I've run
    into a snag where I need to display a number with a leading 0 if it's
    only 1 character for the thing to work. I'm pulling out the startDate
    and endDate from the maximum bounds of the select elements I'm using.
    Does jQuery have something like printf() that will do this for me?
    There
    are a couple of functions out there that people have written but
    they're
    pretty meaty for my purposes. I was looking at
    http://www.vladdy.net/Demos/printf.html but the code is beyond me.

        Cheers,
        Rob





--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://aheimlich.freepgs.com

Reply via email to