JQuery - ref div and href id in div
<p>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:</p>

<pre><code>&lt;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"&gt;do the deed&lt;/a&gt;
</code></pre>

<p>I was hoping this little bit of JQuery would do it for me, but it doesn't</p>

<pre><code>    $(document).ready(function() {
 $(".TrackClick").click(function(){ 
  trackcode = this.id;
  alert("trackcode");
 });
</code></pre>

<p>But that doesn't work, any ideas?</p>

<p>TIA!</p>
