jQuery toggle() doesn't work inside included (using PHP) code.
<p>I have the following code defined in order to hide certain elements of a list:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
  $("button").click(function(){
    $(".done").toggle();
  });
});
&lt;/script&gt;
</code></pre>

<p>Basically, any &lt; button > element being clicked will execute the toggle() function on any element with the "done" class. I know this works, because it works on some of my buttons. I have a page made up of several included files (using PHP include()). Usually, the javascript works in and out of these included files, but for some reason if I put a button inside one of them, it doesn't work - the function only works for buttons placed on the document where the script is defined. Is this always  the case, or am I doing something wrong?</p>
