jqueryモバイルで、ページの読み込み時に選択ボックスを自動的に開くにはどうすればよいですか? このサンプルのように:
私のコード:
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<select name="select-choice-usa" id="select-choice-usa" size="15">
<option>USA</option>
<option selected="selected">EUROPE</option>
<option>UK</option>
</select>
<select name="select-choice-size" id="select-choice-size">
<option selected="selected">3.5</option>
<option>4</option>
<option>4.5</option>
</select>
</fieldset>
</div>
私が試したスクリプト:
$('#page1').live("pagecreate", function() {
$('#select-choice-usa').attr('parent',focus())
});