title: How to select if has not an element
body: <p>I would like that if the user clicks in a <code>&lt;td&gt;</code> of a  <code>&lt;tr&gt;</code>  that <strong>DOESN'T</strong> have an input element of type <strong>checkbox</strong>, it will call a function.</p>
  
  <p>Actually, I'm trying to do in this way:</p>
  
  <pre><code> $(document).on("click", "#mytable tr:has(td)", function (e) {
       //Some code
   }
  </code></pre>
  
  <p>I tried also adding <code>tr:has(td):not(checkbox)</code> but doesn't work either.</p>
  
  <p>And In this way didn't work too:</p>
  
  <pre><code>if (e.toElement === "input"){
      return;
  }
  </code></pre>
  
  <p>Is there a way to do this? Look how is the table:
  <a href="https://i.stack.imgur.com/Z03Qr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z03Qr.png" alt="Table"></a></p>