title: Setting a default selection in a select menu in JQuery Mobile?
body: <p>I'm trying to set the default selection in a select menu in JQuery mobile. The docs have this:</p>
  
  <pre><code>   var myselect = $("select#foo");
     myselect[0].selectedIndex = 3;
     myselect.selectmenu("refresh");
  </code></pre>
  
  <p>Which I added right underneath where I create the menu, but then when I run the code I get this error:</p>
  
  <blockquote>
    <p>throw "cannot call methods on " + name + " prior to initialization; " +
    "attempted to call method '" + options + "'";</p>
  </blockquote>
  
  <p>Not sure what to do at this point...</p>