title: jquery - if href attr == ""
body: <p>I am trying to find out if a href attr is empty do something, my code is as follows...</p>
  
  <pre><code>jQuery('#sidebar a').click(function() {
  
       var bob = jQuery(this).attr("href");
  
       if(jQuery(bob).attr() == "") {
              alert('I am empty href value');
          }
  
      });
  </code></pre>
  
  <p>I am not sure where I am going wrong? Any advice? Thanks!</p>