title: Deleting from select list and database - HTML5
body: <p>I have a function which is meant to remove an item from a select list onclick of a button and also remove that option from my database. The code is below:</p>
  
  <pre><code>function removeOption(id, column){
      var checkdel = $('#'+id+' option:selected').text();
      $('#'+id+'option:selected').remove();//not working
      $('#'+id+'').selectmenu('refresh', true);//not working
  
      if (!window.openDatabase) {
          alert('Databases are not supported in this browser.');
          return;
      }
  
      db.transaction(function(transaction) {
          transaction.executeSql('DELETE FROM TABLE1 WHERE "'+ column +'" = "'+checkdel+'"\
          ',
          nullHandler);
      });
  
      return;
  }
  </code></pre>
  
  <p>The remove from database is working correctly and I have verified that, but the jquery isn't working to delete them from the select list visually. Can anyone help with this?</p>