so you'd loop through the form fields each time?

On Tue, 31 Aug 2004 11:14:11 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I can use an onclick to add the count however you can keep clicking on
> the radio button to increment it.
> onchange only takes effect when you click off of something.
> I suppose I could reverse the values.. give the 1 a value of -1 and
> the 0 a value of 1.
> Or is it best to loop through the form fields and get a sum each time
> something changes?
>
>
>
> On Tue, 31 Aug 2004 10:56:52 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > How do those websites like Dell keep track of price..
> > IE
> > Say you have 2 radio inputs one with a value of 0, the other with a value of 1.
> > And you have five of these..
> > a_1 = 0
> > a_2 = 1
> > a_3 = 0
> > a_4 = 0
> > a_5 = 1
> > how would you keep track of the totals?
> > Initially you could just do a sum of the values but what if the user
> > changed an option? it wouldnt subtract the 1?
> > Any ideas would be appreciated.
> >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to