I have the following line of code which displays a drop down box, and a text string to the right of it:
The problem is, in Firefox it displays the (DD/MM/YYYY) underneath the drop down box - but in IE it correctly displays the (DD/MM/YYYY) to the right of it. Is there a better way to ensure that its on the same line?
I thought <span> would do it, but it didnt make any differece.
Code:
document.getElementById('formdiv2').innerHTML='<select name="code" id="code" style="width:270px"><?=$codes?></select> (DD/MM/YYYY)';
The problem is, in Firefox it displays the (DD/MM/YYYY) underneath the drop down box - but in IE it correctly displays the (DD/MM/YYYY) to the right of it. Is there a better way to ensure that its on the same line?
I thought <span> would do it, but it didnt make any differece.