Not able to register an event on click of anchor tag
Hi,
Thanks for the reply and here is my code snippet that i am using :
$(document).ready(function () {
$(".PlayCase").click(function() {
s.linkTrackEvents="event21";
s.linkTrackVars="events";
s.events="event21";
s.tl(true,'o','video click');
});
});
My html is like this for html element with playcase class:
<a class="PlayCase" onclick="SetVideo(this, 'playlist?list=PLpnDsRVtqUQoxQMn13Z2HjvpJ_-sezKWS');" href="#"><input id="VideoTitleHidden" type="hidden" value="abc"> <input id="VideoSubTitleHidden" type="hidden" value="hk"> <img src="/hk.jpg" alt="hk" width="315" height="178"></a>
But still it is not working and i inspected through httpfox and fiddler as well but event21 is not getting registered but on the click of the anchor tag the script is getting executed and we have checked it through debugger as well.
Do we need to add prop as well or should it work without that as well.
Let me know where we are going wrong.
Thanks in advance,
Akshay