This question is in reference to
HTML - Change\Update page contents without refreshing\reloading the page
Since the question is protected, I cant go through it.
My question is whether or not something is missing because I can not get it to work. I have added the jquery library
<script language="JavaScript" type="text/javascript" src="js/jquery-1.9.1.js"></script>
I want to say that the function is not being called, but if I replace
$('#myStyle').load('data.php?id=' + id);
with
document.getElementById("myStyle").innerText = 'text';
then it does work and i get text.
Another question is whether or not you could do this or something like it
document.getElementById("myStyle").innerText = '$('#myStyle').load('data.php?id=' + id)';
Thanks for your help Jeff