开发者

jQuery Get for PHP files

开发者 https://www.devze.com 2023-03-21 10:07 出处:网络
I have this statement in my jQuery file: $.get(\"h开发者_Python百科omeTemplates/randomVids.php\", function(data){$(\"#hVid\").html(data);});

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

精彩评论

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

关注公众号