how can I include php in jQuery?
<p>Let's say I have some html file like this:</p>

<pre><code>&lt;body&gt;
   &lt;div&gt;&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>Given that I have referenced jQuery correctly, and I have a .js file like:</p>

<pre><code>$(document).ready(function(){
    $('div').html(4);
});
</code></pre>

<p>That will output 4 when the html is viewed in a browser. Why does it not show anything when I do this?</p>

<pre><code> $(document).ready(function(){
    $('div').html(&lt;?php echo 4; ?&gt;);
 });
</code></pre>
