i don't believe there is a need to use a class if they share a name i.e. amt[]
should be able to use something along the lines of... $F('amt').each().invoke(function {......}) something like that at any rate, one of the more experienced js/pr programmers can do a better job of filling in the details than I can On Fri, Apr 18, 2008 at 11:25 AM, Tarscher <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have multiple textboxes containing numbers. I want to add up all the > numbers and show the sum. Can I select the textboxes by class and sum > the content? > > This also has to happen realtime: when a number is changed ina textbox > the sum should also change. > > can this be done? > > regards, > Stijn > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---