Getting a PHP variable in jQuery
<p>So I have this:</p>

<pre><code>&lt;?php
 echo '
  &lt;script&gt;
$(function(){
   $("a#yeah").click(function(){
           $.ajax({
        url: "ajax.php?action=yeah&amp;id='.$id.'",
        success: function(html){
         $("a#yeah").html("your cool")
                   }
     })
   })


})&lt;/script&gt;';

?&gt;
</code></pre>

<p>basically I am using the PHP variable $id wich can be find in the document, how could i get this same variable but without echoing the jQuery(so i could keep my editor syntax highlight in the Javascript part)?</p>
