title: Change dropdownlist CSS when clicked or hover?
body: <p>Inspired by <a href="https://stackoverflow.com/questions/624102/enable-a-currently-disabled-dropdown-list-when-clicking-the-dropdown-list" title="this answer">https://stackoverflow.com/questions/624102/enable-a-currently-disabled-dropdown-list-when-clicking-the-dropdown-list</a> I tried something and I added some grey background to disabled selection.</p>
  
  <p>The problem is that when I click on some selection (which radio button was disabled) the background of the dropdown list remains grey.</p>
  
  <p>How could I turn it back to normal (white) when clicked even if radio button isn't checked?</p>
  
  <p>You can see it live here <a href="http://jsbin.com/okuca/" rel="nofollow noreferrer">http://jsbin.com/okuca/</a></p>
  
  <p>Here is my actual code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Test &lt;/title&gt;
  &lt;style type="text/css"&gt;
    label.disabled select { opacity: 0.5; filter: alpha(opacity=50); background-color:#CCC; }
  
  &lt;/style&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    $(function() {
      $('div.formdiv').bind('click',function() {
        $('label.disabled',this).removeClass('disabled');
        $('input:radio',this).attr('checked',true);
        $('div.formdiv').not(this).find('label').addClass('disabled').find('select').attr('selectedIndex',0);
      }).find('label').addClass('disabled');
    });
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div class="formdiv"&gt;
    &lt;label for="Name"&gt;
      &lt;input id="Name" name="radio1" type="radio" /&gt;Name:
      &lt;select name="select1"&gt;
        &lt;option value="Rose"&gt;Rose&lt;/option&gt;
        &lt;option value="Lily"&gt;Lily&lt;/option&gt;
      &lt;/select&gt;
      &lt;/br&gt;
    &lt;/label&gt; 
  &lt;/div&gt;
  
  &lt;div class="formdiv"&gt;
    &lt;label  for="Colours"&gt;
    &lt;input id="Colours" name="radio1" type="radio" /&gt;Colour: 
    &lt;select name="select2"&gt;
      &lt;option value="Red"&gt;Red&lt;/option&gt;
      &lt;option value="Green"&gt;Green&lt;/option&gt;
    &lt;/select&gt;
      &lt;/label&gt; 
    &lt;/br&gt;
   &lt;/div&gt; 
  
  &lt;div class="formdiv"&gt;  
   &lt;label  for="Sport"&gt;
    &lt;input id="Sport" name="radio1" type="radio" /&gt;Sport: 
    &lt;select name="select3"&gt;
      &lt;option value="Tennis"&gt;Tennis&lt;/option&gt;
      &lt;option value="Cricket"&gt;Cricket&lt;/option&gt;
    &lt;/select&gt;
    &lt;/label&gt; 
    &lt;/br&gt;
  &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>You can edit it here:
  <a href="http://jsbin.com/okuca/edit" rel="nofollow noreferrer">http://jsbin.com/okuca/edit</a></p>