PDA

View Full Version : JQuery Help



7079
04-07-2008, 08:11 PM
I found a sample of some JQuery code that performs an action, the only thing that I am having trouble with is removing a row. I've played with it for a bit, but no luck, here's the link:

http://jquery.bassistance.de/validate/demo/dynamic-totals.html

I guess it would be ideal if an item is removed that the it updates the items numeric value that was dynamically assigned. Example, if I added 5 items, each items would be item-1, item-2, item-3,... but if i remove let's say item-4, insted of it being item-1, item-2, item-3, item-5 I would like it to be item-1, item-2, item-3, item-4. I hacked up the code from this page and decided to come for help before wasting anymore time on it.

I'm looking for help so that I can learn, so if you can please explain the steps involved rather than just giving me code and telling me it works, it would be greatly appreciated. I don't use a whole lot of JS, but when I do, I have trouble getting what I want done.

Look forward to your help!

Thanks you in advance!!!