title: Jquery on focus event with an html select tag
body: <p>I am using jquery to change the background of a dropdown. For some reason it now requires two clicks to select an item, instead of one click.</p>
  
  <p>What i cannot find out is why this occurs and an efficient workaround or better yet a fix. 
  This seems to be occuring in ie7 &amp; ie 8 (had a friend test it on their box) Below is the exact code we are using to test this issue.  </p>
  
  <p>-----------------------------COMPLETE MARKUP --------------------------------</p>
  
  <p>
  
  
      </p>
  
  <pre><code>&lt;script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;style type="text/css"&gt;
      .yellowBackground, .yellowBackground &gt; * &gt; *
      {
          background-color: #FFFF79;
      }
  &lt;/style&gt;
  
  &lt;script type="text/javascript"&gt;
  
      $(document).ready(function() {
          $('select').focus(function() {
  
              $(this).addClass('yellowBackground');
  
          })
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form&gt;
      &lt;select&gt;
          &lt;option value="A"&gt;Option 1&lt;/option&gt;
          &lt;option value="B"&gt;Option 2&lt;/option&gt;
      &lt;/select&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>