I've been working on implementing a way to load content onto a page without needing to refresh it. While I was able to achieve this, I encountered a problem where the images and CSS files weren't loading properly.
Below is the code I used:
<script>
$(function(){
$('.link').click(function(){
var page=$(this).attr('value');
console.log(page);
$('#display').load(page);
});
})
</script>
<select >
<option value="#">Home</option>
<option value="../myProjects/Aion-Paradise/index.html" class="link">Aion-Paradise</option>
<option value="../myProjects/L2illusions/index.html" class="link">L2 Illutions</option>
<option value="../myProjects/l2sold/index.html" class="link">L2 Sold</option>
<option value="../myProjects/TemplateID1/index.html" class="link">Template 1</option>
<option value="../myProjects/TemplateID2/index.html" class="link">Template 2</option>
</select>
<p><br>
<div id="display"></div>
While the code successfully loads the HTML files, it seems to be missing some of the content including the images and CSS files. Any thoughts on what might be causing this issue?