Hi Friends,
I am a newbie here, so I decided to follow a simple example mentioned
in a tutorial, but I stuck here,
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
the expected behavior of this code should be whenever I click the link
on my page, the pop should appear saying "Thanks for visiting!", and
there would be no redirection. but it is not working in this way, I
click the link and it lead me to the src mentioned in the link, no pop
up, no prevention of default behavior whatsoever.
Thanks
Jawed