Get the value of <a> href using jQuery : <p>I have this <code>&lt;a&gt;</code> href attribute</p>

<pre><code>&lt;a id="cancel" value="&lt;?php echo $subID;?&gt;" href="#"&gt;Cancel&lt;/a&gt;
</code></pre>

<p>and I need to get its value (<code>$subID</code>) and assign it to a JavaScript variable. How can I do that?</p>
