title: Why does the condition in the function not work?
body: <p>Why does the condition in the function not work?
  Please tell me why the .not() condition does not work.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".one").not(".two").on("click", function() {
    console.log("click one");
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.one {
    width: 500px;
    height: 300px;
    background: grey;
    position: relative;
  }
  .two {
    background: red;
    position: absolute;
    top: 20px;
    right: 0px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="one"&gt;
    &lt;input type="file" class="two"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>