Getting Values in each function.

Getting Values in each function.

In My page have 10 fields in 5 sections.

for example every section have two fields.

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

<label>Age</label>
<input type = "text"/>
<label>Months</label>
<input type = "text"/>

I Want to get the error for all text boxs  in second section  when I am entering the value in Second section? Is it possible to get using Each function?please help anyone to get the answer