I'm building a simple sudoku level checker. I need to loop through each lines,columns,each 3x3 boxes. In this code i have a first 3 numbers of first line. How i can loop trough id's numbers so i could check for a count of numbers inside first line?
<div id="firstline">
<td width="30" height="30">
<div id="1">
<input class="one_number" maxlength="1" type="text" onkeypress='validate(event)'>
</div>
</td>
<td width="30" height="30">
<div id="2">
<input class="one_number" maxlength="1" type="text" onkeypress='validate(event)'>
</div>
</td>
<td width="30" height="30">
<div id="3">
<input class="one_number" maxlength="1" type="text" onkeypress='validate(event)'>
</div>
</td>
</div>