title: Highlight a select option using javascript
body: <p>I have a group list as select like that:</p>
  
  <pre><code>&lt;select id="groups"&gt;
  
  &lt;option value="g1"&gt;G1&lt;/option&gt;
  &lt;option value="g2"&gt;G2&lt;/option&gt;
  &lt;option value="g3"&gt;G3&lt;/option&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>I have a contact list which basically contains:</p>
  
  <pre><code>Name = group
  ============
  Casper  G1-G2-G3
  Andy    G1-G2
  Mark    G2-G3 
  </code></pre>
  
  <p>When the user check the <code>checkbox</code> for <code>Casper</code>and click <code>Edit</code> button so <code>G1-G2 and G3</code> should be highlighted (Selected) in the group list. When I get the value of the group field in the contact list, all of the three groups come with comma <code>"G1-G2-G3"</code>. 
  Your help is highly appreciated.
  Thanks,</p>