[jQuery] Sum up of selected classes

2009-11-13 Thread palgo
Hi guys, I have several input fields where the value get set (gave them class name ="part"). I want to sum up the input values into a last input field with class = "total", whenever something is being typed in some other fields. The input fields with class "part" is not a fixed amount, they can v

[jQuery] Re: AJAX is not invoked for dynamically added input fields

2009-11-11 Thread palgo
Thanks man! So I changed this line to this to get it to work: //old $(".A, .B").keyup(function(event){ /new $(".A, .B").live ("keyup", function(event){... Thanks again for your quick answer! -Palgo On 11 Nov, 14:27, Giovanni Battista Lenoci wrote: > palg

[jQuery] AJAX is not invoked for dynamically added input fields

2009-11-11 Thread palgo
Not a good title, but I'll explain little bit better here: I got help here for another issue which was solved: http://groups.google.com/group/jquery-en/browse_thread/thread/e9a2cfa80ec18c4c/33923a0f4ffc5729#33923a0f4ffc5729 So basically in one row there are 3 input fields, and writing to numbers

[jQuery] Re: Get two INPUT values, do some server side calculation, then post it back to another INPUT value in correct TR

2009-11-06 Thread palgo
uot;tr").find("input.B").val ()}, function(data){ $(event.target).closest("tr").find("input.C").val(data); }); }) Not so neat code, but it works atleast! :) On 5 Nov, 23:30, Maarten wrote: > On Nov 5, 10:10 pm, palgo wrote: &g

[jQuery] Re: Get two INPUT values, do some server side calculation, then post it back to another INPUT value in correct TR

2009-11-05 Thread palgo
Thanks Maarten. I'll go ahead an test this soon. Let you know how that goes! :) - Palgo On 5 Nov, 23:30, Maarten wrote: > On Nov 5, 10:10 pm, palgo wrote: > > > I tried with this JS-code, which works for first line but also fills > > up the C in row2 with result. > &

[jQuery] Get two INPUT values, do some server side calculation, then post it back to another INPUT value in correct TR

2009-11-05 Thread palgo
Hi guys, I'm a very new to jquery, so bear with me while try to explain my dilemma :) I have a table with many TR (rows) that got 3 input fileds each. What I'm trying to do with ajax is to: * When user enters something in the two first inputs, use ajax to show the result in the last inputfield.