I think this error must be very silly, but I've been trying over three hours and do not get it to work. I have some li elements, its text tells me what file to load: the files to load are stored in the same directory as the script. I want that when clicking the li, the content division is populated with the contents of the file with the same name as the text of the li. This is my code, can someone help me, please, what I'm doing wrong?
<ul class="sample_list">
<li>AudioContext.txt</li>
<li>AudioNode.txt</li>
<li>AudioDestinationNode.txt</li>
<li>AudioBuffer.txt</li>
</ul>
<div id="content"></div>
<script type="text/javascript">
$(".sample_list li").click(function(){
$("#content").load($(this).text());
});
</script>