<option selected value ...> problem.
Posted on 1998-09-14
The following HTML generates a Drop Down List with a selected value that is (deliberately for the purpose of this question) outside the Drop Down List Window.
I have found that when viewing with IEXP V3.02 the option is selected AND the list is automatically scrolled so that it appears within the Drop Down List Window.
However when viewing with IEXP4.0 (4.72.2106.8) the option is selected but not displayed, you have to manually scroll down to see it.
I have experimented and it seems to be browser specific as it happens in both PWS and II3.
I want my application to be Browser independent so I need a way around this.
Incidentally I have some drop down lists that are generated from code and the same occurs.
Any help would be greatly appreciated.
<td width="50%"><strong><font color="#FF0000">What are you going to do?</font></strong></td>
<td width="50%"><select name="ipWhatToDo" size="2">
<option value="Delete This Item">Delete This Item</option>
<option selected value="Edit These Details">Edit These Details</option>