validate sequential fields using jquery
===

I have 5 rows of 2 input fields.
When a user submits the form, I want to validate these fields and ensure that:

 1. Row One, Field Two is present.
 2. Row Two, Field One is an exact increment above Row One, Field Two - if not calculate it and set the value. The increment in this case is 0.1, but the values entered can be any number ABOVE the previous row. 
 3. Iterate over the rest of the rows and do the same as in point 1 and 2.

The purpose is to make sure no values are left out in between rows and that the values are sequentially incrementing from the 2nd row and up.

i.e. Row One (field 1 to 2): 0.01 to 2.00, 
Row Two (field 1 to 2): 2.01 to 5.00,
Row Three (field 1 to 2): 5.01 to 10.00,... to row 5.

My initial thoughts are to map the fields using jquery and update the field while mapping. Does anyone have any other suggestions using javascript or jquery?