php - IS there something missing? in Change\Update page contents without refreshing\reloading the page -
this question in reference
html - change\update page contents without refreshing\reloading page
since question protected, cant go through it.
my question whether or not missing because can not work. have added jquery library
<script language="javascript" type="text/javascript" src="js/jquery-1.9.1.js"></script> i want function not being called, if replace
$('#mystyle').load('data.php?id=' + id); with
document.getelementbyid("mystyle").innertext = 'text'; then work , text.
another question whether or not or it
document.getelementbyid("mystyle").innertext = '$('#mystyle').load('data.php?id=' + id)'; thanks jeff
it looks you're not using jquery required use code in question linked to. need use $ shortcut referenced in secind question. start adding pages , try examples again.
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
Comments
Post a Comment