I have two divs
<div class="selection mini">
<select name="selfromYear">
<option selected disabled>From</option>
<option>1956</option>
<option>1986</option>
</select>
</div>
<div class="selection mini">
<select name="selToYear">
<option selected disabled>To</option>
<option>1956</option>
<option>1986</option>
</select>
</div>
And I want to fill them with same fields
<div class="selection mini">
<select name="seltoYear">
<option selected disabled>To</option>
<%
Set rs = rs.NextRecordset
do while not rs.EOF
Response.Write "<option>" & rs.Fields(0) & "</option>" & vbCrLf
rs.MoveNext
loop
%>
</select>
</div>
<div class="selection mini">
<select name="selfromYear">
<option selected disabled>From</option>
<%
do while not rs.EOF
Response.Write "<option>" & rs.Fields(0) & "</option>" & vbCrLf
rs.MoveNext
loop
%>
</select>
</div>
But filling only first.
if its not working by do while loop, you may try using simple for loop