title: how to find target is button in Jquery?
body: <p>In document click event how to return if target is button element </p>
  
  <pre><code>$(document).click(function(e){
      if(e.target.nodeName.toLowerCase() != 'button')
  </code></pre>
  
  <p>Whether above code was correct ?</p>