title: How can I add new options to Jquery UI Multiselect
body: <p>I have been trying this for a good while now but I can't seem to add more options to the multiselect.</p>
  
  <p>Even when I try to add a hardcoded piece of information it just doesn't get added. (The headers for Multiselect and JQuery are in a different file).</p>
  
  <p>You can see the link in action here: 
  <a href="http://www.fakegaming.eu/GoT/index.php?act=selectteam&amp;matchid=3" rel="nofollow">http://www.fakegaming.eu/GoT/index.php?act=selectteam&amp;matchid=3</a></p>
  
  <pre><code>&lt;?php
  $matches = new Matches();
  $user = new User();
  $id = $_GET['matchid'];
  $matchinfo = $matches-&gt;getmatch($id);
  $matchplayers = $matches-&gt;getmatchplayers($id);
  ?&gt;
  &lt;script type="text/javascript"&gt;
      $(function(){
          $.localise('ui-multiselect', {/*language: 'en',*/ path: 'script/locale/'});
          $(".multiselect").multiselect();
  
          $("#add").click(function() {
            $('#players').multiselect('addOptions', 'Test=123');
            alert("Handler for .click() called.");
          });
      });
  &lt;/script&gt;
  Kies hier 10 spelers die mee doen aan de match.&lt;br /&gt; &lt;br /&gt;
  
  &lt;form action='index.php?act=createteam' method='post'&gt;
      &lt;select id="players" class="multiselect" multiple="multiple" name="players[]"&gt;
      &lt;?php
          foreach($matchplayers as $matchplayer){
              $userinfo = $user-&gt;getuserbyid($matchplayer['user_id']);
              if($matchplayer['type'] == 0 OR $matchplayer['type'] == 2){
                  $name = $userinfo['EU_username'];
                  ?&gt;
                  &lt;option value="&lt;?= $name ?&gt;"&gt;&lt;?= $name ?&gt;&lt;/option&gt;
                  &lt;?php
              }
          }
  
      ?&gt;
      &lt;/select&gt;
      &lt;input name='name' type='text' id='name' /&gt;
      &lt;input type='button' id="add" name="add" value="Toevoegen" /&gt;
      &lt;input name="submit" value="Maak team" type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm probably just doing something horribly wrong but I just want a good multiselect and add some names to it.</p>