I have three selection fields.
<div style='float: left; padding-right: 10px;'>
<select size="10" name="company_id">
</select>
</div>
<div style='float: left; padding-right: 10px;'>
<select size="10" name="department_id" id="department_id">
</select>
</div>
<div style='float: left; padding-right: 10px;'>
<select size="10" name="user_id[]" id="user_id" multiple>
</select>
</div>
They move next to each other. When you select an element in the first, the ajax request updates the values of the second.
What happens in Firefox and most other browsers is that it resizes and pops a third. But in IE (6.0 and 7), the second resizes, but it does not push the third.
What I did was fix the size of the boxes, but I want to fix it correctly, so does anyone know how?
Here's the jQuery code that I use to add data to sections selects.
$.get("ajax/fetchDepartment.php?sec=departments&company_id="+company_id,
function(data){
$("#department_id").html(data);
});
datacontains the <option>Stuff</option>necessary
EDIT to add: select boxes always have some meaning inside them.
Here is a picture of what is happening (I had to remove the items in the boxes through Photoshop, but you got my point)
selcet http://cznp.com/select_bug.jpg