title: Jquery to get the url when clicking a link
body: <p>In a page, I have a link as <code>N0016</code></p>
  
  <pre><code>jQuery(".ms-listlink").click(function() {  alert($("a", this).attr("href"));  });
  </code></pre>
  
  <p>But here I am not able to get the alert.</p>
  
  <pre><code>[&lt;div class=​"ms-vb  ms-vb-menuPadding itx" ctxname=​"ctx104" id=​"16" field=​"LinkTitle" perm=​"0x7fffffffffffffff" eventtype&gt;​&lt;a class=​"ms-listlink ms-draggable" onfocus=​"OnLink(this)​" href=​"http:​/​/​otsidemo:​11111/​sites/​Dev/​Satya/​_layouts/​15/​listform.aspx?P…6E430115DC12%7D&amp;ID=16&amp;ContentTypeID=0x0100A8CBE041E83BA346BCF4EB1F7DE540E7" onclick=​"EditLink2(this,104)​;​return false;​" target=​"_self" dragid=​"15" draggable=​"true"&gt;​N0016​&lt;/a&gt;​&lt;/div&gt;​]
  </code></pre>