Possible Duplicate:
How to access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?>
i'm practically asking this question:
There is one thing that's different and that's the reason why the given answer over there doesn't work for me.
I'm using wordpress so my link contains php elements. This means i can't just paste the url into jquery since jquery can't cope with php.
the link is the following:
href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>"