I'm developing a mobile website on Android where I have a select list as menu.
the select list is positioned outside the view area and I want to toggle the popup with the options on the browser by clicking a div.
I have already tried millions of ways to open the view to select a value, but none of them was successfull... After a little research I read on stackoverflow that the .focus() function is disabled on an android device.
I know this code works on IOS:
$(document).ready(function(){
$("#navigation").click(function(){
$("#mobileMenu").focus();
});
});
with following html:
<select id="mobileMenu">
<option value="link1" onclick='openMobileMenuLink' >link one</option>
<option value="link2" onclick='openMobileMenuLink' >link two</option>
<option value="link3" onclick='openMobileMenuLink' >link three</option>
</select>
Is there any way I can open the options perspective on the android device (I'm testing in chrome) without destroying the code (that works fine on IOS).