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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -