how to pass the variable value to href argument in anchor tag.
You're missing the # for the id. Try using $('#a_tag_id'). Use an ? before your first query string variable instead of &.
#
$('#a_tag_id')
?
&