title: Uncaught TypeError: elem.nodeName.toLowerCase is not a function Jquery
body: <p>i am working on a project which was working fine but suddenly today it is showing an TypeError</p>
  
  <blockquote>
    <p>Uncaught TypeError: elem.nodeName.toLowerCase is not a function Jquery</p>
  </blockquote>
  
  <p>below is my code where i got the error</p>
  
  <pre><code>// A method for determining if a DOM node can handle the data expando
  acceptData: function( elem ) {
      // Do not set data on non-element because it will not be cleared (#8335).
      if ( elem.nodeType &amp;&amp; elem.nodeType !== 1 &amp;&amp; elem.nodeType !== 9 ) {
          return false;
      }
  
      var noData = elem.nodeName &amp;&amp; jQuery.noData[ elem.nodeName.toLowerCase()//**here** ];
  </code></pre>
  
  <p>I changed my code a bit and added toStringbefore toLowerCase but still getting the same error,</p>
  
  <blockquote>
    <p>changed Like this</p>
  </blockquote>
  
  <pre><code>var noData = elem.nodeName &amp;&amp; jQuery.noData[ elem.nodeName.toString().toLowerCase()//**like this** ];
  </code></pre>
  
  <p>what is the possible problem here?</p>