Bug? updating text in a modal

I have a modal with select fields. When I select an item (the selected item text is put into a var. ) and then click a search button to display information. On display, the field to which the variable text is assigned moves. At the same time, other items are displayed, and these stay where they are supposed to be.