I have a question regarding the layout of select boxes in HTML. In my code, I noticed that the hidden select box appears below the visible select box when it is displayed. I believe this happens because the button takes up the available space next to the visible select box, causing the second select box to "drop" below.
Is my assumption correct?
If so, how can I adjust the positioning of the button to place the second select box next to the first select?
<html>
<body>
<table>
<tr>
<td id="t">
<div id="select1">
<select>
<option>
John Smith
</option>
<option>
Bill Johnson
</option>
<option>
Mary Jones
</option>
</select>
</div>
<div id="select2" style="display:none">
<select>
<option>
CA
</option>
<option>
AZ
</option>
<option>
NV
</option>
</select>
</div>
</td>
<td><input type="submit" value="Press me!" onclick="doit()"/> </td>
</tr>
</table>
<script type="text/javascript">
function doit() {
document.getElementById("select2").style.display="block";
}
</script>
</body>
</html>