Hi,
I want to be able to know when someone clicks a link and then reference a var within the link that I assign as a ID. For example given a link like this:
<a class="TrackClick" id="SomeUnknownVar" href="javascript:void(0)" onClick="window.open('http://someurl','','width=650,height=400,scrollbars=yes,left=150,top=100,screenX=150,screenY=100'); return false">do the deed</a>
I was hoping this little bit of JQuery would do it for me, but it doesn't
$(document).ready(function() {
$(".TrackClick").click(function(){
trackcode = this.id;
alert("trackcode");
});
But that doesn't work, any ideas?
TIA!