![]() |
Select element with multiple and optgroup on iphone/ipad acting very strange
I've got a page which features a select element with multiple selections allowed, where many of the options are within OPTGROUPs. I've just noticed that on the iphone and ipad, it acts really strangely.
The HTML passes validation in an online validator. And, as far as I can tell, there's nothing strange about it at all. And it all seems to work OK on all major browsers on windows and mac. However on the iPhone (and, so I'm told, the iPad), it's fine when you select options outside of the optgroup. But selecting items in the optgroup it seems to have a mind of it's own. You can tick, say, 4 items in the gui, but the text on the select box might say '2 items'. And when you choose 'done', and then re-open the select box gui, there might be only 2 items now selected. It does seem to work correctly if you select options near the bottom, and then work your way upwards, but not working downwards. I've recreated this behaviour on the iphone on safari and chrome. You can see a demo here: http://www.theseveninches.co.uk/select.html. Try it on an iphone and see if it acts strange. Am I going mental here? Is there something wrong with this HTML or is it apple that's gone nuts? And is there a workaround? Here's the HTML: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
In your open <select> tag you have MULTIPLE capitialized. Try putting it in all lower case letters. It COULD be that whatever version of the iPhone and iPad the users have are having a hard time rendering multiple in all capital letters. It's worth a try. :)
Another thing to try is in your open <select> tag the name="to[]". You can try taking out the brackets and see if that has any effect. A third thing to try is you have most property values in single quotes. Try putting them all in double quotes. My initial guess is that any of the three above could be giving the iPhone and iPad rendering engines a hard time. It's worth a try. :) |
Quote:
|
| All times are GMT +1. The time now is 10:35 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.