Jquery and includes


<?php include(“includes/header.php”);?>

<!-- html content –>

<?php include(“includes/footer.php”);?>


I have my page structure as show with all of the html head in the header.php. When trying to use jquery scripts nothing works but if I create a single file with exact same code it all work and yes I am sure I have the correct path to the files.

So how do I get jquery to work with includes.

Thx in advance

If your page works as just HTML, then if you remove content and place it into include files, it should work just the same, as the page is reconstructed by the server before it is sent to the browser. So once it reaches the browser, the includes are gone anyway.

Where are the jQuery files? What does the page code look like in the browser?