I have this statement in my jQuery file:
$.get("h开发者_Python百科omeTemplates/randomVids.php", function(data){$("#hVid").html(data);});
Where the contents of randomVids.php should be loaded into a div called hVid
. However, this does not work for me: nothing seems to load when the line is executed.
I consulted this page for information.
Any help would be appreciated.
You should probably just use this...
$("#hVid").load("homeTemplates/randomVids.php");
精彩评论