Possible Duplicate:
How to access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?>
this may have been covered, but I'm wondering if it's possible to pass a php variable to a jQuery selector.
I have a variable called $tDate, and I want to be able to use it in this code:
$('$tDate').backstretch([
"pot-holder.jpg",
"coffee.jpg",
"dome.jpg"
], {
fade: 750,
duration: 4000
});