title: Open Select using Javascript/jQuery?
body: <p>Is there a way to open a select box using Javascript (and jQuery)?</p>
  <pre><code>&lt;select style=&quot;width:150px;&quot;&gt;
      &lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
      &lt;option value=&quot;2&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc arcu nunc, rhoncus ac dignissim at, rhoncus ac tellus.&lt;/option&gt;
      &lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>I have to open my select, cause of IE bug. All versions of IE (6,7,8) cut my options.
  As far as I know, there is no CSS bugfix for this.
  At the moment I try to do the following:</p>
  <pre><code>var original_width = 0;
  var selected_val = false;
  
  if (jQuery.browser.msie) {
      $('select').click(function(){
          if (selected_val == false){
              if(original_width == 0)
                  original_width = $(this).width();
  
              $(this).css({
                  'position' : 'absolute',
                  'width' : 'auto'
              });
          }else{
              $(this).css({
                  'position' : 'relative',
                  'width' : original_width
              });
              selected_val = false;
          }
      });
  
      $('select').blur(function(){
          $(this).css({
              'position' : 'relative',
              'width' : original_width
          });
      });
  
      $('select').blur(function(){
          $(this).css({
              'position' : 'relative',
              'width' : original_width
          });
      });
              
      $('select').change(function(){
          $(this).css({
              'position' : 'relative',
              'width' : original_width
          });
      });
  
      $('select option').click(function(){
          $(this).css({
              'position' : 'relative',
              'width' : original_width
          });
      
          selected_val = true;
      });
  
  }
  </code></pre>
  <p>But clicking on my select the first time will change the width of the select but I have to click again to open it.</p>