passing parameters through anchor tag

passing parameters through anchor tag

Hi,
 
I am new to JQuery and trying to post some parameters from an anchor tag.  But only my 'site' parameter gets passed.  Here is my code :
 
< a class ="screenshot-link" href ="#" site ='dv2' num ='1'> 1 </ a >
 

$(

".screenshot-link").click(function () {

var site = $(this).attr("site");

var num = $(this).attr("num");

$.post(

"/Development/Main/Screenshot",

{

site: site, num: num }

);

});
 
Any ideas what I am doing wrong?