Force picker view to pop up using Javascript on iPhone
<p>When you touch on a menu item in a web page on the iPhone, a picker view appears that allows you to select from the values that are in the menu.</p>

<p>I have a web page with a menu, but I'm trying to get the picker view to appear programmatically rather than have the user touch it first. This is my form </p>

<pre><code>&lt;form id="myForm"&gt;
&lt;select id="mySelect"&gt;
&lt;option value="a"&gt;a&lt;/option&gt;
&lt;option value="b"&gt;b&lt;/option&gt;
&lt;option value="c" selected&gt;c&lt;/option&gt;
&lt;option value="d"&gt;d&lt;/option&gt;
&lt;option value="e"&gt;e&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;
</code></pre>

<p>I've tried the click() function on "mySelect" and I've tried adding focus first as below</p>

<pre><code>$(document).ready(function() {
$('#mySelect').focus(function() {
$('#mySelect').click();
});
  });
</code></pre>

<p>but nothing seems to work. I've tried this in Safari without success either, so it probably not webkit-specific.</p>

<p>What am I doing wrong?</p>
