title: Pass php variable to jQuery
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3943198/parse-a-javascript-file-through-php">Parse a JavaScript file through PHP</a>  </p>
  </blockquote>
  
  
  
  <p>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 :</p>
  
  <pre><code> $('#submitAuto').click(function(){
            var isDelete = $("#autoDelete").val();
            var userID = "&lt;?php echo $userData ; ?&gt;" ;
  </code></pre>
  
  <p>But I find out the userID value is the string, <code>&lt;?php echo $userData ; ?&gt;</code>,  instead of $userData value.</p>
  
  <p>How could I handle this problem?</p>
  
  <p>Any suggestion will be welcomed,
  Thanks in advance </p>