Thanks Maarten. I'll go ahead an test this soon. Let you know how that goes! :)
- Palgo On 5 Nov, 23:30, Maarten <maartenwie...@gmail.com> wrote: > On Nov 5, 10:10 pm, palgo <rusha...@gmail.com> wrote: > > > I tried with this JS-code, which works for first line but also fills > > up the C in row2 with result. > > > $(".A, .B").keyup(function(event){ > > $.get("script.php", { a: $(".A").val(), b: $(".B").val()}, > > function(data){ > > $(".C").val(data) > > Palgo, > > I would replace above line of code with the following. As you can see, > it tries to find the closest TR element from the element from which > the event is triggered, from there it places the value in the INPUT > element with class 'C'. The code is untested but should be close to > what you need. > > $(event.target).closest("tr").find("input.C").val(data); > > Good luck, > > Maarten