Get value of HREF from Anchor tag using JQuery
<p>I have an anchor tag like this</p>

<pre><code>&lt;a class="k-link" href="#"&gt;Add New Details&lt;/a&gt;
</code></pre>

<p>After clicking on the link i need to get the value of </p>

<pre><code>&lt;list id="getval"&gt; #=Id# (5) &lt;/list&gt;
</code></pre>

<p>I have written the code something like this.</p>

<pre><code>$(document).ready(function () {
$(".k-link").click(function(){
        var a = document.getElementById(getval).value;
      alert(a);
        window.location = "/PoDetails/Create/" + a;
    });
});
</code></pre>

<p>The above code is not working as expected. How can i fix this issue. Please help me for this.</p>
