title: calling jquery function with anchor tag
body: <p>I want to call a Jquery function with a hyperlink.</p>
  
  <p>As I have it at the moment it is like this.</p>
  
  <pre><code>&lt;a name='lnkViews'&gt;" + title+ "&lt;/a&gt;
  
  $("a[name='lnkViews']").on("click", function (e) {
      alert("Calling function");
  });
  </code></pre>
  
  <p>As it is here it is not working. How can I call the function with the Hyperlink?</p>