title: jquery show()/hide() problem in Internet Explorer?
body: <p>The following html code works in Firefox, but for some reason fails in IE (Label2 is not shown). Is that a bug or I miss something?</p>
  
  <p>Any help would be appreciated.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
          &lt;script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"&gt;
          &lt;/script&gt;
          &lt;script&gt;
              jQuery(document).ready(function(){
                  function setVis(){
                      var val = $("#check").is(":checked");
                      if (val) 
                          $("#g_1").show();
                      else 
                          $("#g_1").hide();
                  }
  
                  setVis();
                  $("#check").change(setVis);
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;span&gt;
              &lt;input type="checkbox" id="check" /&gt;
              &lt;label&gt;Label1&lt;/label&gt;
          &lt;/span&gt;
          &lt;span id="g_1"&gt;
              &lt;label&gt;Label2&lt;/label&gt;
          &lt;/span&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>