when I click on the link, event is firing but alert() function is not working. I mean, it is not executing the function code. any help is appreciated. thanks.
<a id="linkSurveyId" href="/wordcloud/49" title="Melodifestivalen">Melodifestivalen </a>
$("#linkSurveyId").click( function (e) {
e.preventDefault();
alert("welcome");
});
Works for me: http://jsfiddle.net/L3k39/
I suspect you have something else in your code that is preventing this JS from running. Check your error console.