开发者

jQuery Get for PHP files

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜