[jQuery] Re: [help] Math + Checkboxes

2009-05-31 Thread Ignacio Ricci
That's it! I realize now that the problem was the same in both cases x D Thank you very much Brian. Regards, Ignacio On May 31, 9:48 pm, brian wrote: > Good point. Try this to limit it to the proper set of inputs: > > $(this).parents().filter('.productInfo').find('input:checked').each(function

[jQuery] Re: [help] Math + Checkboxes

2009-05-31 Thread brian
Good point. Try this to limit it to the proper set of inputs: $(this).parents().filter('.productInfo').find('input:checked').each(function() { aditionalValue += Math.ceil($(this).val()); }); On Sun, May 31, 2009 at 9:38 PM, Ignacio Ricci wrote: > > Hi Brian. I didn't see that, your defi

[jQuery] Re: [help] Math + Checkboxes

2009-05-31 Thread Ignacio Ricci
Hi Brian. I didn't see that, your definetely right. I changed what you told me, and it appeared fixed initially. However when you check some checkboxes from one list, and then check others in the other list, the prize gets affected weirdly. Anyway we're closer to the solution. Thank you :) Ignac

[jQuery] Re: [help] Math + Checkboxes

2009-05-31 Thread Ignacio Ricci
Hi Brian. I didn't see that, your definetely right. I changed what you told me, and it appeared fixed initially. However when you check some checkboxes from one list, and then check others in the other list, the prize gets affected weirdly. Anyway we're closer to the solution. Thank you :) Ignac

[jQuery] Re: [help] Math + Checkboxes

2009-05-31 Thread brian
Change this: $('.productAditionals input').parents().filter('.productInfo').siblings().filter('.productBuy').find('strong span').text(aditionalValue); to: $(this).parents().filter('.productInfo').siblings().filter('.productBuy').find('strong span').text(aditionalValue); Within the 'change' eve