I have on-fly increasing form rows and 3 columns and each cell contains text box. I want to sum first 2 columns’ values to 3rd columns for each row. how can i do that with jquery?
let me visualize more:
c1 c2 s
r1 5 6 11
r2 7 3 10
. . . .
s sc1 sc2 sc3
sc1,sc2,sc3 are sum of the related columns as you see.
You should build your table like this:
And your javascript should look like this:
You can see a working example here: http://jsfiddle.net/my9DF/