I.e, I have two files:
- index.php
- some-content.php
In the index.php is where I load my CSS and JS:
<head><link href="css/web.css" rel="stylesheet" type="text/css" /></head>
<body><script src="js/web.js" type="text/javascript"></script></body>
Now, what I am doing is loading "some-content.php" with a load() event in "js/web.js":
$("#content").load('some-content.php');
Long story short:
When I load "some-content.php" it inherits all the necessary CSS styles from css/web.css without me having to include another link href in "some-content.php"
But none of the JS scripts seem te be working - the ones stored in js/web.js that is srced in index.php
Am I force to add:
<script src="js/web.js" type="text/javascript"></script>
again in "some-content.php"?
Thanks