title: SCRIPT438: Object doesn't support this property or method
body: <p>I apologies if this has already been answered.  I'm running this code successfully in Chrome, IE9 but in IE8 and IE7 I'm getting a "SCRIPT438: Object doesn't support this property or method " (doesn't say which property or method) line 1 character 1.  I'm stumped.  Can someone put me out of my mysery?  (Using jQuery v1.6.2.)  Thanks so much.</p>
  
  <p>(To everyone who has helped me this morning, thank so much.  The snippet I posted was part of a much larger project and I tried to identify the piece that I "thought" was causing the problem.  After stripping out a mile of code, I'm now able to veryify that IE7 and IE8 are producing : SCRIPT438: Object doesn't support this property or method testkw.cfm, line 67 character 6.  </p>
  
  <p>This is at line 67:  </p>
  
  <pre><code>$('.IDlookup').click(function() {                
      ID  = $(IDval).attr('value');                
      var r = "test.cfm";
      $.get(r,function(data){
          $("#Details").html(data);
      });
  });
  </code></pre>
  
  <p>This is the entire template</p>
  
  <pre><code>&lt;div id="Message" style="padding-left:10px;"&gt;
  
    &lt;div style="margin-top:5px; margin-bottom:5px;"&gt;
      &lt;input class="add" type="radio" id="_ID" name="lookupType" value="ID" /&gt;
      ID
      &lt;input class="add" type="radio" id="_name" name="lookupType" value="name" /&gt;
  Name&lt;/div&gt;
    &lt;div id="ID" class="rTypedesc" style="display:none; padding-left:5px;"&gt;
      &lt;input type="text" id="IDval" name="IDval" value="Enter EntityID/ID" /&gt;
      &lt;a class="IDlookup"&gt;Find &amp;raquo;&lt;/a&gt; &lt;/div&gt;
    &lt;div id="name" class="rTypedesc" style="display:none;"&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;input type="text" id="nameinput" name="nameinput" /&gt;&lt;/td&gt;
          &lt;td style="padding-left:5px;"&gt;&lt;a class="name"&gt;Find &amp;raquo;&lt;/a&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="Details"&gt;&lt;/div&gt;
  &lt;script &gt;
  //
  $.ajaxSetup ({
      // Disable caching of AJAX responses
      cache: false
  });
  
  
  
  
  
    $("input[name$='lookupType']").click(function() {         
      var rType = $(this).val();         
      $(".rTypedesc").hide();         
      $("#"+rType).show();  
      });  
  
    $('.IDlookup').click(function() {              
      var ID  = $('IDval').attr('value');                  
          var r = "test.cfm?id="+ID;
          $.get(r,function(data){
          $("#Details").html(data);
          });
        });
  
  
    $('.name').click(function() {              
         var ID  = $('nameinput').attr('value');                   
          var r = "test.cfm?id="+ID;
          $.get(r,function(data){
          $("#Details").html(data);
          });
        });
  
       $('#IDval').click(function() {
           $(this).val();
       });
  
  &lt;/script&gt;
  </code></pre>