How to load PHP file into DIV by jQuery?

前端 未结 4 753
轮回少年
轮回少年 2020-11-27 17:23

I am developing a website and I have this on the side menu :

Contact Us

then I h

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 18:06

    add home.php page url instead of file name.

    $(document).ready(function(){
      $("#contact").click(function(){
        $("#contents").load('url to home.php');
      });
    });
    

提交回复
热议问题