hi i have a anchor tag but I want to prevent the default behaviour using jquery. But not getting the exact solution. can you tell me what is wrong in my code?
$(document).ready(function(){
$("a[name]").click(function(event){
alert("As you can see, the link no longer took you to jquery.com");
eventpreventDefault();
});
});