Possible Duplicate:
Parse a JavaScript file through PHP
I've been trying to pass a php variable to jQuery , but with not much success. Here's the part of the code which I used to pass the data :
$('#submitAuto').click(function(){
var isDelete = $("#autoDelete").val();
var userID = "<?php echo $userData ; ?>" ;
But I find out the userID value is the string, <?php echo $userData ; ?>
, instead of $userData value.
How could I handle this problem?
Any suggestion will be welcomed, Thanks in advance