title: Hide/Show is not working in IE 8
body: <p>I am having two dropdowns. Based on the first dropdown values, the second dropdown values are hidden. But hide() and show() is not working in IE 8. But working fine in Firefox.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function marketcd_dropdown_const(){
      alert($("#first").val());
      switch ($("#first").val())
      {
  
          case 'ONE':
              $('.market_code_dropdown').hide();  
              $('.instorder').hide();  
              $('#all_option').prop('selected',true);
              break;
  
          case 'TWO':
              $('.market_code_dropdown').hide();
              $('.instorder').hide();  
              $('#all_option').prop('selected',true);
              break;
  
          default:
              $('.market_code_dropdown').show();
              $('.instorder').show();  
              $('#all_option').prop('selected',true);
              break;
  
      }
  }
  
  $(document).ready(function(){
      alert("ready function");
      $(document).bind('change', ".first_class", marketcd_dropdown_const);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>JSP:</p>
  
  <pre><code>&lt;SELECT NAME=BillingSystem id="first" class="first_class" size="1" onchange="nuvoxcolumn(this);" &gt;
  
                    &lt;!-- // Option All  --&gt;
                    &lt;option value=&lt;%= m_strALL %&gt;
  
              &lt;%
                  if (m_bGet || m_strOldBillingSystem.equals("%"))
                      {%&gt;
                 &lt;%= m_selected %&gt;
              &lt;%}
              %&gt;
              &gt;
           &lt;%= m_strAllSearch %&gt;
              &lt;%Log.write("m_strAllSearch for billing system: "+m_strAllSearch); %&gt;
           &lt;/option&gt;
  
  
           &lt;%
                  while(m_strBillSystemList[iCount] != null)
  
                      {
                          String strBillSystem = m_strBillSystemList[iCount];
           %&gt;
           &lt;OPTION VALUE=&lt;%= strBillSystem %&gt;
           &lt;%Log.write("m_strOldBillingSystem: "+m_strOldBillingSystem); %&gt;
                 &lt;%
                          if (m_strOldBillingSystem != null)
                              {
                                  if (m_strOldBillingSystem.equals(strBillSystem))
                                      {%&gt;
  
                       &lt;%= m_selected %&gt;
                    &lt;%}
                              }
                    %&gt; &gt;
              &lt;%= strBillSystem %&gt;
              &lt;%Log.write("strBillSystem: "+strBillSystem); %&gt;
              &lt;/option&gt;
              &lt;%
                          iCount++;
                      }
              %&gt;
  
              &lt;/select&gt;
  
  &lt;SELECT NAME=MarketCode id="second" size = 1&gt;
  
             &lt;!--   // Option All   --&gt;
  
  
  
  
                    &lt;option id="all_option" value=&lt;%= m_strALL %&gt;
  
                 &lt;%
                  if (m_bGet || m_strOldMarketCode.equals("%"))
                      {%&gt;
                    &lt;%= m_selected %&gt;
                 &lt;%}
                 %&gt; &gt;
                 &lt;%= m_strAllSearch %&gt;
                 &lt;%Log.write("m_strAllSearch for market code: "+m_strAllSearch); %&gt;
                 &lt;/option&gt;
  
              &lt;%
                  while(m_strMktCodeList[iCount] != null)
                      {
                          String strMktCode = m_strMktCodeList[iCount];
  
  
              %&gt;
  
              &lt;OPTION class="market_code_dropdown" VALUE=&lt;%= strMktCode %&gt;
                   &lt;%
                          if (m_strOldMarketCode != null)
                              {
                                  if (m_strOldMarketCode.equals(strMktCode))
                                      {%&gt;
                          &lt;%= m_selected %&gt;
                      &lt;%}
                              }
                      %&gt; &gt;
  
  
                 &lt;%= strMktCode %&gt; 
                    &lt;%Log.write("strMktCode: "+strMktCode); %&gt;
  
  
  
                 &lt;/option&gt;
                 &lt;%
                          iCount++;
                      }
                 %&gt; 
                 &lt;/select&gt;
  </code></pre>
  
  <p>Jquery version used:jQuery v1.4.2
  Afterwords, i used latest jquery version.
  Both are not working in IE 8.</p>