I'm trying to get href value from anchor tag.

<code>
$(document).ready(function() {
        $("a").click(function(event) {
                alert("As you can see, the link no longer took you to 
jquery.com");
                //$("a").html.href;
                event.preventDefault();
        });
});


<a href="http://jquery.com/";>jQuery</a>
</code>

Reply via email to