title: Using event.target to get element
body: <p>I'm basically trying to get the target element from event.target and if not equal process.
  How can i get the below thing to work ?</p>
  
  <pre><code>$(document).ready(function(){
     $(document).click(function(event) {
  
         if(event.target!='#contents') {  //If clicked element is not div #contents show alert .. //How can i achieve this ?
           alert("..");
         }
  
      });
  });
  </code></pre>