The code below is taken as example from a larger classic asp module.
<SELECT Name="numSelect">
<OPTION Value="NONE" selected>-- choose a number below --</OPTION>
<OPTION Value=1>1</OPTION>
<OPTION Value=2>2</OPTION>
<OPTION Value=3>3</OPTION>
<OPTION Value=4>4</OPTION>
</SELECT>
- the code works fine in desktop browsers, IE, Chrome, Firefox and Opera. The box is open to show the options, ready to click on.
- the code, however, does not work in Android mobile browsers, Opera-mobile, Chrome, Firefox nor the built in Samsung Internet browser. The picklist does open in those browsers when the down-arrow is clicked. There is one difference to this. The Puffin browser for Android "does" the option box correctly (i.e. it is open).
- the code also does not work in iPhone, nor iPad browser Safari. Although the first option is displayed, the list is not open. The picklist opens when the down-arrow is clicked.
I thought it may have to do with differences between HTML5 and earlier versions, but I can find no such references. There is no different browser behavior whether the code is sent via the ASP server, or whether it is sent as an .html file.
My question is 2-fold.
- what may be the difference between the browsers? I recognize that this is a loaded question. This may not be answerable, but if possible a short explanation.
- is there a different way to handle the options pickbox (combobox that shows the list without having to click the down-arrow) that would work on the Android? I am not looking for detailed code; but would welcome a suggestion.
Thanks for any help and/or enlightenment.
Edit: As suggested below, added quotes to attributes. Results are the same. Desktop browsers show the select/option correctly as an open box, but Android browsers do not show as open box, with exception of the Puffin browser that shows the open box correctly. Safari on iPhone and iPad also do not show the open box.