title: In jQuery how to set an option as selected dynamically
body: <p>Looks like i have a strange problem. I'm creating a select menu and assigning it to some plugin named select menu </p>
  
  <pre><code>$('#selectCombo').selectmenu({style:'dropdown'});
  </code></pre>
  
  <p>After assigning it to it.. I couldn't hide it, or set an option as selected. I tried this</p>
  
  <pre><code>$('&lt;option value='+ret.cId+' selected=true&gt;'+ret.cName+'&lt;/option&gt;').appendTo('#selectCombo');   
      $('#selectCombo').selectmenu({style:'dropdown'});   
  </code></pre>
  
  <p>Its working but it is showing another instance of dopdown below the original one. I tried removing class attribute but it hasn't worked. Is there any way.. plz help</p>