title: JQuery Mobile select box not displaying selected option
body: <p>I hope someone can help I've looked for the answer and tried many options…..  I have a HTML5 database and tables that is updated, then the select box is emptied, new select options are created. The problem is the selected option is not displayed. Below is the actual query Mobile code. Thanks</p>
  
  <pre><code>function updateCList() {
      db.transaction(function (tx) {
          tx.executeSql('SELECT * FROM CourseTable', [], function (tx, results) {
              var len = results.rows.length, i;
              $('#coursemenu').empty();
              SelectOption(document.courseData_form.coursemenu, "Course Type", "Course Type")
              for (i = 0; i &lt; len; i++){
                  SelectOption(document.courseData_form.coursemenu, results.rows.item(i).c_type, results.rows.item(i).c_type);
              }
          }, null);
          $('#coursemenu').selectmenu('refresh', true);           
      });
  }
  </code></pre>