title: bootstrap-select add item and select it
body: <p>I'm using Silvio Moreto's Bootstrap Select.</p>
  
  <p>On my page I have a button that opens a modal with an input box that allows you to add an item to the selectpicker.  I would then like to automatically have that item selected but I can't get it to work.</p>
  
  <p>The code I have is :</p>
  
  <pre><code>$('#myselect').append('&lt;option val="'+newitemnum+'"&gt;'+newitemdesc+'&lt;/option&gt;');
  $('#myselect').val(newitemnum);
  $('#myselect').selectpicker('refresh');
  </code></pre>
  
  <p>But it just doesn't  work.  The item doesn't get selected.  </p>
  
  <p>I have tried replacing the selection line with :</p>
  
  <pre><code>$('#myselect').selectpicker('val',newitemnum);
  </code></pre>
  
  <p>but that doesn't work either</p>
  
  <p>Any ideas much appreciated (although the item DOES get added to the selectpicker).</p>