title: How to create an if statement for jQuery, click event
body: <p>I do have a css class name ".className"
  How to create an if statement wherein if the user does not click .className it will alert.
  for example:</p>
  
  <pre><code>if (click != $('.className')) {
     alert("You did not click className");
  }
  </code></pre>
  
  <p>I know that my code is incorrect. How to do it? Btw, this is similar to an outside click.
  Thank you.</p>