Alan, thanks much.  I used a bunch of your techniques.
It works now.  I might touch it up some tomorrow.  Maybe trigger the check
boxes for all the lower model ones.  And I need to start with a default
position on the money.  But the hard part is done.  And I am sure that I
could tidy up the code even further.

Thanks everyone for the help!  I appreciate it!

Glen




On 11/21/06, Alan Gutierrez <[EMAIL PROTECTED]> wrote:

I hate giving advice. If anyone is paying attention, check me.

To keep from lossing a penny, rather than store you numbers as
floats, store them as a count of pennies. So that 45.95 becomes
4595.

Then do like this...

http://blogometer.com/repository/etude/jQuery/discuss/sum-prices/sum.html

Divide and modulo by 10 to build your array.

* Glen Lipka <[EMAIL PROTECTED]> [2006-11-22 00:51]:
> Yes,  I would need to do exactly that.
> I am working now on adding up all the checked boxes using parseFloat to
> convert them.  Is that the best way?  They are strings, I guess.
>
> When you say, plugin worthy, which are you talking about?

> >Not sure I follow. Are you looking to convert ...
> >
> >var x = 179.95
> >
> >to
> >
> >var x = [1, 7, 9, 9, 5]
> >
> >?
> >
> >Then feed that to your number presentation widget, which is plugin
> >worthy, by the way.


--
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] -
http://blogometer.com/
                Think New Orleans - http://thinknola.com/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to